Skip to content

Commit 1ff0d65

Browse files
authored
Merge pull request #57 from ayasyrev/struct
struct
2 parents 9a662a1 + 08f54ae commit 1ff0d65

File tree

14 files changed

+5
-9
lines changed

14 files changed

+5
-9
lines changed

setup.cfg

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
[metadata]
22
name = model_constructor
3+
version = attr: model_constructor.version.__version__
34
author = Yasyrev Andrei
45
author_email = a.yasyrev@gmail.com
56
description = Pytorch models constructor.
@@ -14,10 +15,13 @@ classifiers =
1415
Operating System :: OS Independent
1516

1617
[options]
17-
packages = find_namespace:
18+
package_dir =
19+
= src
20+
packages = find:
1821
python_requires = >=3.7
1922

2023
[options.packages.find]
24+
where = src
2125
exclude =
2226
tests*
2327
Nbs*

setup.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
from setuptools import setup
22

33

4-
VERSION_FILENAME = 'model_constructor/version.py'
54
REQUIREMENTS_FILENAME = 'requirements.txt'
65
REQUIREMENTS_TEST_FILENAME = 'requirements_test.txt'
76

@@ -22,15 +21,8 @@
2221
# What packages are optional?
2322
EXTRAS = {"test": TEST_REQUIRED}
2423

25-
# Load the package's __version__ from version.py
26-
version = {}
27-
with open(VERSION_FILENAME, 'r', encoding="utf-8") as fh:
28-
exec(fh.read(), version)
29-
VERSION = version['__version__']
30-
3124

3225
setup(
33-
version=VERSION,
3426
install_requires=REQUIRED,
3527
extras_require=EXTRAS,
3628
)
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)