-
Notifications
You must be signed in to change notification settings - Fork 168
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge configuration files into pyproject.toml (#829)
* Add setuptools to host requirements * Convert setup.* files into pyproject.toml * Add news * Move version dunder into init * Apply suggestions from code review Co-authored-by: jaimergp <[email protected]> * Update constructor/__init__.py Co-authored-by: jaimergp <[email protected]> * Add _version.py to gitignore --------- Co-authored-by: jaimergp <[email protected]>
- Loading branch information
1 parent
0d275c1
commit 66c58d4
Showing
10 changed files
with
76 additions
and
2,915 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
[flake8] | ||
max-line-length = 100 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -156,3 +156,6 @@ cython_debug/ | |
rever/ | ||
|
||
build/ | ||
|
||
# setuptools-scm | ||
constructor/_version.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,10 @@ | ||
from . import _version | ||
try: | ||
from ._version import version as __version__ | ||
except ImportError: | ||
try: | ||
from importlib.metadata import version | ||
|
||
__version__ = _version.get_versions()['version'] | ||
__version__ = version("constructor") | ||
del version | ||
except ImportError: | ||
__version__ = "0.0.0.unknown" |
Oops, something went wrong.