Skip to content

Commit

Permalink
version
Browse files Browse the repository at this point in the history
  • Loading branch information
dvklopfenstein committed Sep 7, 2020
1 parent a22c89a commit 3c330a7
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 12 deletions.
15 changes: 9 additions & 6 deletions makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@

PYTHON = python3

findpy:
find src -regextype posix-extended -regex ".*[a-z]+.py"
Expand Down Expand Up @@ -29,16 +29,19 @@ ver:

# -----------------------------------------------------------------------------
upgrade:
python3 -m pip install --upgrade pip
python3 -m pip install --upgrade setuptools wheel twine
python3 -m pip install --upgrade distutils
$(PYTHON) -m pip install --upgrade pip
$(PYTHON) -m pip install --upgrade setuptools wheel twine
$(PYTHON) -m pip install --upgrade distutils

#
# https://packaging.python.org/guides/distributing-packages-using-setuptools/#packaging-your-project
# # universal wheels are pure Python
sdist:
# python3 -m pip install --user --upgrade setuptools wheel
make clean_dist
python3 setup.py sdist
$(PYTHON) setup.py sdist
$(PYTHON) setup.py bdist_wheel --universal
ls -lh dist
twine check dist/*

clean_dist:
rm -rf dist build
Expand Down
14 changes: 8 additions & 6 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@
from os.path import abspath
from os.path import dirname
from os.path import join
from distutils.core import setup
import versioneer
# from distutils.core import setup
from setuptools import setup
# import versioneer
from glob import glob

def get_long_description():
Expand All @@ -18,12 +19,10 @@ def get_long_description():

setup(
name='pmidcite',
version=versioneer.get_version(),
## version=versioneer.get_version(),
version='v0.0.2',
author='DV Klopfenstein',
author_email='dvklopfenstein@protonmail.com',
# https://packaging.python.org/guides/making-a-pypi-friendly-readme/
long_description=get_long_description(),
long_description_content_type='text/markdown',
cmdclass=versioneer.get_cmdclass(),
packages=[
'pmidcite',
Expand Down Expand Up @@ -60,5 +59,8 @@ def get_long_description():
],
url='http://github.com/dvklopfenstein/pmidcite',
description="Augment's a PubMed literature search with citation data from NIH's iCite.",
# https://packaging.python.org/guides/making-a-pypi-friendly-readme/
long_description=get_long_description(),
long_description_content_type='text/markdown',
# install_requires=['docopt'],
)
1 change: 1 addition & 0 deletions src/pmidcite/__version__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
__version__ = 'v0.0.2'

0 comments on commit 3c330a7

Please sign in to comment.