Skip to content

Commit b186beb

Browse files
committed
chore: change to versioneer-518 build system
1 parent 4d115a3 commit b186beb

File tree

9 files changed

+17
-2369
lines changed

9 files changed

+17
-2369
lines changed

.github/workflows/main.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,11 @@ jobs:
7878
- name: Install dependencies
7979
run: |
8080
python -m pip install --upgrade pip setuptools wheel
81-
python -m pip install twine
81+
python -m pip install twine versioneer-518
82+
- name: Check PEP517 compliance
83+
run: python -m pep517.check .
8284
- name: Build package
83-
run: python setup.py sdist bdist_wheel
85+
run: python -m pep517.build --source --binary .
8486
- name: Check the package
8587
run: twine check dist/*
8688
- name: Publish to PyPI

CHANGELOG.rst

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,12 @@ History
55
Next Release
66
------------
77
* Upcoming features and fixes
8-
* Fixed issue #22: Preserve tag order as in other SDKs
9-
* Fixed issue #31: Consistency of element relationships
10-
* Fixed issue #13: Resolve overlap between add methods
118

12-
0.1.0 (2020-03-26)
9+
10+
0.1.0 (2020-10-15)
1311
------------------
14-
* First release
12+
* Fix: Resolve overlap between add methods (#13)
13+
* Fix: Add IDs to the big bank example (#16)
14+
* Fix: Preserve tag order as in other SDKs (#22)
15+
* Fix: Consistency of element relationships (#31)
16+
* Add Python 3.9 to the test suite

MANIFEST.in

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
include README.rst
22
include LICENSE
3-
include versioneer.py
43
include src/structurizr/_version.py

pyproject.toml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,11 @@
11
[build-system]
2+
build-backend = 'setuptools.build_meta'
23
requires = [
34
'setuptools>=40.6.0',
5+
'versioneer-518',
46
'wheel'
57
]
68

79
[tool.black]
810
line-length = 88
9-
python-version = ['py37', 'py38']
10-
exclude = '''
11-
(
12-
_version.py
13-
)
14-
'''
11+
python-version = ['py36']

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ where = src
5353
development =
5454
black
5555
isort
56+
pep517
5657
tox
5758

5859
[bdist_wheel]
@@ -68,5 +69,4 @@ style = pep440
6869
versionfile_source = src/structurizr/_version.py
6970
versionfile_build = structurizr/_version.py
7071
tag_prefix =
71-
parentdir_prefix = structurizr-python-
7272

src/structurizr/__init__.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,6 @@
1818

1919
__author__ = "Moritz E. Beber"
2020
__email__ = "midnighter@posteo.net"
21-
from ._version import get_versions
22-
23-
__version__ = get_versions()["version"]
24-
del get_versions
2521

2622

2723
from .helpers import show_versions

0 commit comments

Comments
 (0)