Skip to content

Commit

Permalink
Attempt to add to pip
Browse files Browse the repository at this point in the history
  • Loading branch information
niemasd committed Mar 10, 2024
1 parent 7052691 commit 49f2fbd
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 1 deletion.
5 changes: 5 additions & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Include the README
include *.md

# Include the license file
include LICENSE
5 changes: 5 additions & 0 deletions compile_pypi.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/usr/bin/env bash
rm -rf build dist favites_lite.egg-*
python3 setup.py sdist
python3 setup.py bdist_wheel --universal
twine upload dist/*
2 changes: 1 addition & 1 deletion global.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"VERSION": "1.0.0",
"VERSION": "1.0.1",
"CONFIG_KEYS": ["Contact Network", "Transmission Network", "Sample Times", "Viral Phylogeny (Transmissions)", "Viral Phylogeny (Seeds)", "Mutation Rates", "Ancestral Sequence", "Sequence Evolution"],
"DESC": {
"Contact Network": "The <b style='color:red;'>Contact Network</b> graph model describes all social interactions:<ul><li>Nodes represent individuals in the population</li><li>Edges represent all interactions across which the pathogen can transmit</li><li>Currently, FAVITES-Lite only supports static (i.e., unchanging) contact networks</li></ul>",
Expand Down
19 changes: 19 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
from json import load
from setuptools import setup, find_packages
VERSION = load(open('global.json'))['VERSION']

setup(
name='favites_lite', # This is the name of your PyPI-package.
version=VERSION, # Update the version number for new releases
scripts=['favites_lite.py',], # The name of your script, and also the command you'll be using for calling it
description='FAVITES-Lite: A lightweight framework for viral transmission and evolution simulation',
long_description='FAVITES-Lite: A lightweight framework for viral transmission and evolution simulation',
long_description_content_type='text/plain',
url='https://github.com/niemasd/FAVITES-Lite',
author='Niema Moshiri',
author_email='[email protected]',
packages=find_packages(exclude=['.devcontainer', '.github', '.tests', 'example', 'scripts', 'webapp']),
zip_safe = False,
install_requires=['numpy', 'scipy', 'treesap', 'treeswift'],
include_package_data=True
)

0 comments on commit 49f2fbd

Please sign in to comment.