Skip to content

Commit 3d1b13b

Browse files
committed
Fixing version handling (packaging changed?) - fix v0.4.1
1 parent a24e879 commit 3d1b13b

File tree

5 files changed

+17
-1
lines changed

5 files changed

+17
-1
lines changed

CHANGELOG.md

+8
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1616

1717
### Deprecated
1818

19+
20+
## [0.4.1] - 2025-03-7
21+
22+
### Fixed
23+
24+
- Version handling.
25+
26+
1927
## [0.4.0] - 2025-03-7
2028

2129
### Added

setup.py

+7
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,16 @@
22
from pathlib import Path
33
from version import __version__ as version
44

5+
56
this_directory = Path(__file__).parent
67
long_description = (this_directory / "README.md").read_text()
78

9+
10+
with (this_directory / "syngular" / "version.py").open() as f:
11+
exec(f.read())
12+
version = __version__ # noqa
13+
14+
815
setup(
916
name='syngular',
1017
version=version,

syngular/__init__.py

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
DEGBOUNDs = [4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24] # noqa
44
DEBUG = False # noqa
55

6+
from .version import __version__ # noqa
67
from .ideal import Ideal # noqa
78
from .ring import Ring # noqa
89
from .qring import QuotientRing, QRing # noqa

syngular/version.py

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
__version__ = '0.4.1'

version.py

-1
This file was deleted.

0 commit comments

Comments
 (0)