Skip to content

Commit

Permalink
Merge configuration files into pyproject.toml (#829)
Browse files Browse the repository at this point in the history
* 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
marcoesters and jaimergp authored Aug 7, 2024
1 parent 0d275c1 commit 66c58d4
Show file tree
Hide file tree
Showing 10 changed files with 76 additions and 2,915 deletions.
2 changes: 2 additions & 0 deletions .flake8
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[flake8]
max-line-length = 100
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -156,3 +156,6 @@ cython_debug/
rever/

build/

# setuptools-scm
constructor/_version.py
11 changes: 9 additions & 2 deletions constructor/__init__.py
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"
Loading

0 comments on commit 66c58d4

Please sign in to comment.