use setuptools_scm for versioning and packaging

master
Thomas Waldmann 2018-09-17 21:23:18 +02:00
parent 035122bab5
commit 77d291b660
4 changed files with 11 additions and 10 deletions

2
.gitignore vendored
View File

@ -19,6 +19,8 @@ var/
*.egg-info/
.installed.cfg
*.egg
.eggs/
src/bepasty/_version.py
# Installer logs
pip-log.txt

View File

@ -1,8 +1,4 @@
include README.rst CHANGES.rst LICENSE AUTHORS
include setup.cfg setup.py
recursive-include docs *
recursive-include requirements.d *
recursive-include src/bepasty/static *
recursive-include src/bepasty/templates *
prune docs/build
# stuff we need to include into the sdist is handled automatically by
# setuptools_scm - it includes all git-committed files.
# but we want to exclude some committed files/dirs not needed in the sdist:
exclude .gitattributes .gitignore .travis.yml

View File

@ -1,6 +1,6 @@
[tool:pytest]
pep8maxlinelength = 120
norecursedirs = .git .tox build
norecursedirs = .eggs .git .tox build
pep8ignore =
*.py E124 # closing bracket does not match visual indentation (behaves strange!?)
*.py E125 # continuation line does not distinguish itself from next logical line (difficult to avoid!)

View File

@ -30,7 +30,10 @@ except ImportError:
setup(
name='bepasty',
version='0.5.0',
use_scm_version={
'write_to': 'src/bepasty/_version.py',
},
setup_requires=['setuptools_scm', ],
license='BSD 2-clause',
author='The Bepasty Team (see AUTHORS file)',
author_email='',