Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: modernize setup infrastructure #131

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 1 addition & 6 deletions git_deps/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1 @@
import pkg_resources

try:
__version__ = pkg_resources.get_distribution(__name__).version
except pkg_resources.DistributionNotFound:
__version__ = 'unknown'
__version__ = '1.1.0'
7 changes: 5 additions & 2 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
[metadata]
name = git-deps
version = attr: git_deps.__version__
summary = automatically detect dependencies between git commits
author = Adam Spiers
author_email = [email protected]
license = GPL-2+
home_page = https://github.com/aspiers/git-deps
description_file = README.md
long_description = file: README.md
long_description_content_type = text/markdown
classifier =
Development Status :: 4 - Beta
Environment :: Console
Expand All @@ -32,7 +34,8 @@ data_files =

[options]
packages =
git_deps
find:
requires = Sphinx

[options.entry_points]
console_scripts =
Expand Down
25 changes: 1 addition & 24 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,29 +1,6 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Setup file for git_deps.

This file was generated with PyScaffold, a tool that easily
puts up a scaffold for your new Python project. Learn more under:
http://pyscaffold.readthedocs.org/
"""

import sys
from setuptools import setup


def setup_package():
needs_sphinx = {'build_sphinx', 'upload_docs'}.intersection(sys.argv)
sphinx = ['sphinx'] if needs_sphinx else []
setup(
setup_requires=[
'pyscaffold',
] + sphinx,
long_description='README.md',
long_description_content_type="text/markdown",
use_pyscaffold=True
)


if __name__ == "__main__":
setup_package()
setup()
1 change: 0 additions & 1 deletion tests/create-repo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ two
three
four
five
six
seven
eight
nine
Expand Down
Loading