Skip to content

Commit

Permalink
Merge pull request #160 from penguinpee/master
Browse files Browse the repository at this point in the history
Fix long_description for PyPI upload
  • Loading branch information
Phlya committed Nov 4, 2023
2 parents 9107083 + 570154a commit e474370
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#!/usr/bin/env python
import os
from pathlib import Path
from setuptools import setup


Expand All @@ -10,6 +9,9 @@ def get_version(path):
version = version.strip().strip('"')
return version

def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()


setup(name='adjustText',
version=get_version(os.path.join(
Expand All @@ -27,7 +29,7 @@ def get_version(path):
packages=['adjustText'],
install_requires=["numpy", "matplotlib", "bioframe", "scipy"],
include_package_data=True,
long_description=Path("README.md").read_text(encoding="utf-8"),
long_description=read("README.md"),
long_description_content_type="text/markdown",
license="MIT",
classifiers=[
Expand Down

0 comments on commit e474370

Please sign in to comment.