Skip to content

Commit

Permalink
fix setup
Browse files Browse the repository at this point in the history
  • Loading branch information
kisnikser committed Dec 3, 2024
1 parent 27ac6da commit dcf1bd6
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 4 deletions.
2 changes: 0 additions & 2 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@
import os
import sys

sys.path.insert(0, os.path.abspath("../../src/"))

from relaxit import __version__


Expand Down
14 changes: 12 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
import io
import os
import sys
from setuptools import setup

version_info = {}
with open(os.path.join("src", "relaxit", "_version.py")) as f:
exec(f.read(), version_info)

def read(file_path):
with io.open(file_path, "r", encoding="utf-8") as f:
return f.read()

try:
long_description = open("README.md", encoding="utf-8").read()
except Exception as e:
Expand All @@ -10,7 +20,7 @@

setup(
name="relaxit",
version="1.0.0",
version=version_info["__version__"],
license="MIT",
author="Daniil Dorin, Igor Ignashin, Nikita Kiselev, Andrey Veprikov",
author_email="[email protected]",
Expand All @@ -19,6 +29,6 @@
long_description_content_type="text/markdown",
url="https://github.com/intsystems/discrete-variables-relaxation",
packages=["relaxit"],
package_dir={"relaxit": "src"},
package_dir={"relaxit": "src/relaxit"},
install_requires=["pyro-ppl==1.9.1"],
)
1 change: 1 addition & 0 deletions src/relaxit/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from ._version import __version__
1 change: 1 addition & 0 deletions src/relaxit/_version.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
__version__ = "1.0.0"

0 comments on commit dcf1bd6

Please sign in to comment.