Clean up install process

master
Aaron Goldstein 2020-03-04 01:01:01 -08:00
parent b0e33c9f2c
commit 5c066921e9
3 changed files with 10 additions and 4 deletions

1
.gitignore vendored
View File

@ -49,3 +49,4 @@ Temporary Items
/.ipynb_checkpoints/ /.ipynb_checkpoints/
/.idea/ /.idea/
*.json *.json
/Altium_Schematic_Parser.egg-info/

View File

@ -5,7 +5,7 @@ Converts Altium .SchDoc files into json
* olefile * olefile
## Install ## Install
git clone git@github.com:a3ng7n/Altium-Schematic-Parser.git git clone git@github.com:a3ng7n/Altium-Schematic-Parser.git
cd Altium-Schematic-Parser/ cd Altium-Schematic-Parser
pip install -r requirements.txt pip install -e .
## Usage ## Usage
python parse.py -i "path/to/altiumschematic.schdoc" -o "path/to/jsonfile.json" python parse.py -i "path/to/altiumschematic.schdoc" -o "path/to/jsonfile.json"

View File

@ -1,17 +1,22 @@
import os
from setuptools import setup, find_packages from setuptools import setup, find_packages
with open("README.md", "r") as fh: with open("README.md", "r") as fh:
long_description = fh.read() long_description = fh.read()
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup( setup(
name='Altium-Schematic-Parser', name='Altium-Schematic-Parser',
version='0.0.0', version='0.0.0',
packages=find_packages(), packages=find_packages(exclude=['tests']),
url='https://github.com/a3ng7n/Altium-Schematic-Parser', url='https://github.com/a3ng7n/Altium-Schematic-Parser',
license='see LICENSE', license='see LICENSE',
author='Aaron Goldstein', author='Aaron Goldstein',
author_email='aaronmgoldstein@gmail.com', author_email='aaronmgoldstein@gmail.com',
description='Converts Altium .SchDoc files into json', description='Converts Altium .SchDoc files into json',
long_description=long_description, long_description=long_description,
long_description_content_type="text/markdown" long_description_content_type="text/markdown",
install_requires=read('requirements.txt').splitlines()
) )