Skip to content

Commit

Permalink
Fix setup.py install
Browse files Browse the repository at this point in the history
  • Loading branch information
luistarkbank committed Mar 28, 2024
1 parent a22c0f6 commit 819683a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ Given a version number MAJOR.MINOR.PATCH, increment:


## [Unreleased]
### Fixed
- setup.py install

## [2.25.0] - 2024-03-13
### Added
Expand Down
8 changes: 6 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
from re import search
from setuptools import setup, find_packages

with open('README.md', encoding="utf-8") as f:
README = f.read()
try:
with open('README.md', encoding="utf-8") as f:
README = f.read()
except:
with open('README.md') as f:
README = f.read()

with open('starkbank/__init__.py') as f:
version = search(r'version = \"(.*)\"', f.read()).group(1)
Expand Down

0 comments on commit 819683a

Please sign in to comment.