Compare commits

...

7 commits

Author SHA1 Message Date
260d67bf81 update gitignore 2019-10-27 13:54:43 -07:00
4deaa41d7e whitespace fixes 2019-10-27 13:05:27 -07:00
8b5d5af95b bump version number to 0.3 2019-10-01 00:00:06 -07:00
e8c6c4f74c clean up whitespace 2019-09-30 23:59:37 -07:00
e842f81575 update tags 2019-09-30 23:59:28 -07:00
49a7c21ed2 Move version number into VERSION file
to avoid importing mem_edit in setup.py
2019-09-30 23:59:20 -07:00
6321d4221c specify pip3 in readme 2019-03-24 21:13:19 -07:00
7 changed files with 23 additions and 14 deletions

1
.gitignore vendored
View file

@ -4,4 +4,5 @@ __pycache__
*.pyc
*.egg-info/
build/
dist/

View file

@ -1,2 +1,3 @@
include README.md
include LICENSE.md
include mem_edit/VERSION

View file

@ -25,12 +25,12 @@
Install with pip, from PyPI (preferred):
```bash
pip install mem_edit
pip3 install mem_edit
```
Install with pip from git repository
```bash
pip install git+https://mpxd.net/code/jan/mem_edit.git@release
pip3 install git+https://mpxd.net/code/jan/mem_edit.git@release
```

1
mem_edit/VERSION Normal file
View file

@ -0,0 +1 @@
0.3

View file

@ -12,12 +12,16 @@ To get started, try:
"""
import platform
import pathlib
from .utils import MemEditError
__author__ = 'Jan Petykiewicz'
version = '0.2'
with open(pathlib.Path(__file__).parent / 'VERSION', 'r') as f:
__version__ = f.read().strip()
version = __version__
system = platform.system()

View file

@ -1,15 +1,15 @@
#!/usr/bin/env python3
from setuptools import setup, find_packages
import mem_edit
with open('README.md', 'r') as f:
long_description = f.read()
with open('mem_edit/VERSION', 'r') as f:
version = f.read().strip()
setup(name='mem_edit',
version=mem_edit.version,
version=version,
description='Multi-platform library for memory editing',
long_description=long_description,
long_description_content_type='text/markdown',
@ -34,7 +34,6 @@ setup(name='mem_edit',
'trainer',
],
classifiers=[
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Development Status :: 4 - Beta',
'Environment :: Other Environment',
@ -50,6 +49,9 @@ setup(name='mem_edit',
'Topic :: Utilities',
],
packages=find_packages(),
package_data={
'mem_edit': ['VERSION']
},
install_requires=[
'typing',
],