Skip to content

Commit

Permalink
Fix setuptools
Browse files Browse the repository at this point in the history
  • Loading branch information
BattlefieldDuck committed Nov 16, 2023
1 parent 6207064 commit 33570b3
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion opengsq/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '2.2.1'
__version__ = '2.2.2'
12 changes: 9 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,21 @@

from setuptools import find_packages, setup

current_dir = os.path.abspath(os.path.dirname(__file__))
version_contents = {}
with open(os.path.join(os.path.abspath(os.path.dirname(__file__)), 'opengsq', 'version.py'), encoding='utf-8') as f:

with open(os.path.join(current_dir, 'opengsq', 'version.py'), encoding='utf-8') as f:
exec(f.read(), version_contents)

with open('README.md', 'r', encoding='utf-8') as f:
long_description = f.read()

with open('requirements.txt', 'r', encoding='utf-8') as f:
install_requires = f.read().splitlines()
try:
with open('requirements.txt', 'r', encoding='utf-8') as f:
install_requires = f.read().splitlines()
except FileNotFoundError:
with open(os.path.join(current_dir, 'opengsq.egg-info', 'requires.txt'), 'r', encoding='utf-8') as f:
install_requires = f.read().splitlines()

setup(
name='opengsq',
Expand Down

0 comments on commit 33570b3

Please sign in to comment.