Skip to content

Commit

Permalink
DISTRIBUTION - fix to work with twine
Browse files Browse the repository at this point in the history
  • Loading branch information
achim1 committed Mar 22, 2022
1 parent c4d3540 commit 39f75c4
Show file tree
Hide file tree
Showing 4 changed files with 48 additions and 22 deletions.
22 changes: 18 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,25 @@
[![Documentation Status](https://readthedocs.org/projects/hepbasestack/badge/?version=latest)](https://hepbasestack.readthedocs.io/en/latest/?badge=latest)
[![Build Status](https://travis-ci.org/achim1/hepbasestack.svg?branch=master)](https://travis-ci.org/achim1/hepbasestack)

Collection of recurring snippets in common projects which includes logging, adjusting matploltib styles, setting plot layouts,
determinining if something is executed within and ipython notebook etc.

The hep in the name referes to high-energy particlephysiscs and the commonly used software stack numpy/matplotlib, which this
packages should help to handle more comfortly with the provided snippets. However, it is not tied to the use in high-energy physics.
A collection of (hopefully) useful tools:

- logging facility

- pre-set matplotlib styles

- reasonable matplotlib figure sizes

- a list slicer

- ipython notebook detector

...

### hepbasestack?

hep : high-energy particle physics. Package is supposed to be at the bottmo of the software stack used in hep.
Might be useful elsewhere

### Installation

Expand Down
2 changes: 1 addition & 1 deletion hepbasestack/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Miscellaneous tools
"""

__version__ = '0.1.4'
__version__ = '0.1.5'
__all__ = ["visual","itools","logger", "colors", "layout"]

import resource
Expand Down
Empty file modified requirements.txt
100755 → 100644
Empty file.
46 changes: 29 additions & 17 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,22 +23,35 @@ def get_version(package):

# parse the requirements.txt file
# FIXME: this might not be the best way
install_requires = []
with pathlib.Path('requirements.txt').open() as requirements_txt:
for line in requirements_txt.readlines():
if line.startswith('#'):
continue
try:
req = str([j for j in pk.parse_requirements(line)][0])
except Exception as e:
print (f'WARNING: {e} : Can not parse requirement {line}')
continue
install_requires.append(req)
#install_requires = []
#with pathlib.Path('requirements.txt').open() as requirements_txt:
# for line in requirements_txt.readlines():
# if line.startswith('#'):
# continue
# try:
# req = str([j for j in pk.parse_requirements(line)][0])
# except Exception as e:
# print (f'WARNING: {e} : Can not parse requirement {line}')
# continue
# install_requires.append(req)

#with open(join(os.path.dirname(__file__), 'README.md')) as readme:
with pathlib.Path('README.md').open() as readme:
long_description = readme.read()
long_description='''
A collection of (hopefully) useful tools:
* logging facility
* pre-set matplotlib styles
* reasonable matplotlib figure sizes
* a list slicer
* ipython notebook detector
...
'''
tests_require = [
'pytest>=3.0.5',
'pytest-cov',
Expand All @@ -58,11 +71,10 @@ def get_version(package):
author_email="achim.stoessl@gmail.com",
url='https://github.com/achim1/hepbasestack',
download_url=f"https://github.com/achim1/hepbasestack/archive/v{version}.tar.gz",
install_requires=install_requires,
#install_requires=install_requires,
setup_requires=setup_requires,
license="GPL",
platforms=["Ubuntu 16.04", "Ubuntu 16.10", "SL6.1",
"Ubuntu 18.04", "Ubuntu 18.10", "Ubuntu 19.04"],
platforms=["Ubuntu 20.04", "Ubuntu 21.10"],
classifiers=[
"License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)",
"Development Status :: 5 - Production/Stable",
Expand Down

0 comments on commit 39f75c4

Please sign in to comment.