Skip to content

Commit

Permalink
Turning into python package for regular flow
Browse files Browse the repository at this point in the history
  • Loading branch information
starfleetjames committed Jun 30, 2022
1 parent 6d84d77 commit 3531dcf
Show file tree
Hide file tree
Showing 7 changed files with 193 additions and 15 deletions.
Empty file added __init__.py
Empty file.
158 changes: 158 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,158 @@
aiofiles @ file:///home/conda/feedstock_root/build_artifacts/aiofiles_1639589461506/work
aioftp @ file:///home/conda/feedstock_root/build_artifacts/aioftp_1650584826341/work
aiohttp @ file:///Users/runner/miniforge3/conda-bld/aiohttp_1649013197268/work
aiosignal @ file:///home/conda/feedstock_root/build_artifacts/aiosignal_1636093929600/work
appnope @ file:///home/conda/feedstock_root/build_artifacts/appnope_1649077682618/work
argon2-cffi @ file:///home/conda/feedstock_root/build_artifacts/argon2-cffi_1640817743617/work
argon2-cffi-bindings @ file:///Users/runner/miniforge3/conda-bld/argon2-cffi-bindings_1649500375223/work
asdf @ file:///home/conda/feedstock_root/build_artifacts/asdf_1654547382043/work
asdf-astropy @ file:///home/conda/feedstock_root/build_artifacts/asdf-astropy_1650374360559/work
asdf-coordinates-schemas @ file:///home/conda/feedstock_root/build_artifacts/asdf-coordinates-schemas_1647455323543/work
asdf-standard @ file:///home/conda/feedstock_root/build_artifacts/asdf-standard_1650374333506/work
asdf-transform-schemas @ file:///home/conda/feedstock_root/build_artifacts/asdf-transform-schemas_1646320381808/work
astropy @ file:///Users/runner/miniforge3/conda-bld/astropy_1653590267590/work
astropy-healpix @ file:///Users/runner/miniforge3/conda-bld/astropy-healpix_1636593300273/work
asttokens @ file:///home/conda/feedstock_root/build_artifacts/asttokens_1618968359944/work
async-timeout @ file:///home/conda/feedstock_root/build_artifacts/async-timeout_1640026696943/work
attrs @ file:///home/conda/feedstock_root/build_artifacts/attrs_1640799537051/work
backcall @ file:///home/conda/feedstock_root/build_artifacts/backcall_1592338393461/work
backports.functools-lru-cache @ file:///home/conda/feedstock_root/build_artifacts/backports.functools_lru_cache_1618230623929/work
beautifulsoup4 @ file:///home/conda/feedstock_root/build_artifacts/beautifulsoup4_1649463573192/work
bleach @ file:///home/conda/feedstock_root/build_artifacts/bleach_1649361991009/work
brotlipy @ file:///Users/runner/miniforge3/conda-bld/brotlipy_1648854210220/work
cached-property @ file:///home/conda/feedstock_root/build_artifacts/cached_property_1615209429212/work
cdflib @ file:///home/conda/feedstock_root/build_artifacts/cdflib_1648498902024/work
certifi==2022.5.18.1
cffi @ file:///Users/runner/miniforge3/conda-bld/cffi_1636046170920/work
charset-normalizer @ file:///home/conda/feedstock_root/build_artifacts/charset-normalizer_1644853463426/work
cloudpickle @ file:///home/conda/feedstock_root/build_artifacts/cloudpickle_1653061851209/work
colorama @ file:///home/conda/feedstock_root/build_artifacts/colorama_1602866480661/work
coverage @ file:///Users/runner/miniforge3/conda-bld/coverage_1654179396484/work
cryptography @ file:///Users/runner/miniforge3/conda-bld/cryptography_1652967702532/work
cycler @ file:///home/conda/feedstock_root/build_artifacts/cycler_1635519461629/work
cytoolz==0.11.2
dask @ file:///home/conda/feedstock_root/build_artifacts/dask-core_1654898467425/work
debugpy @ file:///Users/runner/miniforge3/conda-bld/debugpy_1649586388483/work
decorator @ file:///home/conda/feedstock_root/build_artifacts/decorator_1641555617451/work
defusedxml @ file:///home/conda/feedstock_root/build_artifacts/defusedxml_1615232257335/work
drms @ file:///home/conda/feedstock_root/build_artifacts/drms_1621187605070/work
entrypoints @ file:///home/conda/feedstock_root/build_artifacts/entrypoints_1643888246732/work
executing @ file:///home/conda/feedstock_root/build_artifacts/executing_1646044401614/work
fastjsonschema @ file:///home/conda/feedstock_root/build_artifacts/python-fastjsonschema_1641751198313/work/dist
flit_core @ file:///home/conda/feedstock_root/build_artifacts/flit-core_1645629044586/work/source/flit_core
fonttools @ file:///Users/runner/miniforge3/conda-bld/fonttools_1651017784092/work
frozenlist @ file:///Users/runner/miniforge3/conda-bld/frozenlist_1648771715263/work
fsspec @ file:///home/conda/feedstock_root/build_artifacts/fsspec_1653010523205/work
Glymur @ file:///home/conda/feedstock_root/build_artifacts/glymur_1648149298587/work
greenlet @ file:///Users/runner/miniforge3/conda-bld/greenlet_1648882434786/work
h5netcdf @ file:///home/conda/feedstock_root/build_artifacts/h5netcdf_1648717901828/work
h5py @ file:///Users/runner/miniforge3/conda-bld/h5py_1637964026225/work
idna @ file:///home/conda/feedstock_root/build_artifacts/idna_1642433548627/work
imagecodecs @ file:///Users/runner/miniforge3/conda-bld/imagecodecs_1655137858950/work
imageio @ file:///home/conda/feedstock_root/build_artifacts/imageio_1654071881944/work
importlib-metadata @ file:///Users/runner/miniforge3/conda-bld/importlib-metadata_1653252891204/work
importlib-resources @ file:///home/conda/feedstock_root/build_artifacts/importlib_resources_1652715758048/work
iniconfig @ file:///home/conda/feedstock_root/build_artifacts/iniconfig_1603384189793/work
ipykernel @ file:///Users/runner/miniforge3/conda-bld/ipykernel_1655241716287/work
ipython @ file:///Users/runner/miniforge3/conda-bld/ipython_1653754984678/work
ipython-genutils==0.2.0
ipywidgets @ file:///home/conda/feedstock_root/build_artifacts/ipywidgets_1647456365981/work
isodate @ file:///home/conda/feedstock_root/build_artifacts/isodate_1639582763789/work
jedi @ file:///Users/runner/miniforge3/conda-bld/jedi_1649067453550/work
Jinja2 @ file:///home/conda/feedstock_root/build_artifacts/jinja2_1654302431367/work
jmespath @ file:///home/conda/feedstock_root/build_artifacts/jmespath_1647416812516/work
jsonschema @ file:///home/conda/feedstock_root/build_artifacts/jsonschema-meta_1654138136460/work
jupyter @ file:///Users/runner/miniforge3/conda-bld/jupyter_1637233271483/work
jupyter-client @ file:///home/conda/feedstock_root/build_artifacts/jupyter_client_1654730843242/work
jupyter-console @ file:///home/conda/feedstock_root/build_artifacts/jupyter_console_1646669715337/work
jupyter-core @ file:///Users/runner/miniforge3/conda-bld/jupyter_core_1652365332337/work
jupyterlab-pygments @ file:///home/conda/feedstock_root/build_artifacts/jupyterlab_pygments_1649936611996/work
jupyterlab-widgets @ file:///home/conda/feedstock_root/build_artifacts/jupyterlab_widgets_1647446862951/work
kiwisolver @ file:///Users/runner/miniforge3/conda-bld/kiwisolver_1655141666942/work
locket @ file:///home/conda/feedstock_root/build_artifacts/locket_1650660393415/work
lxml @ file:///Users/runner/miniforge3/conda-bld/lxml_1654081928901/work
MarkupSafe @ file:///Users/runner/miniforge3/conda-bld/markupsafe_1648737610588/work
matplotlib @ file:///Users/runner/miniforge3/conda-bld/matplotlib-suite_1651610267679/work
matplotlib-inline @ file:///home/conda/feedstock_root/build_artifacts/matplotlib-inline_1631080358261/work
mistune @ file:///Users/runner/miniforge3/conda-bld/mistune_1635844814827/work
mpl-animators @ file:///home/conda/feedstock_root/build_artifacts/mpl_animators_1643881085671/work
multidict @ file:///Users/runner/miniforge3/conda-bld/multidict_1648882466411/work
munkres==1.1.4
nbclient @ file:///home/conda/feedstock_root/build_artifacts/nbclient_1654071785565/work
nbconvert @ file:///home/conda/feedstock_root/build_artifacts/nbconvert-meta_1649676641343/work
nbformat @ file:///home/conda/feedstock_root/build_artifacts/nbformat_1651607001005/work
nest-asyncio @ file:///home/conda/feedstock_root/build_artifacts/nest-asyncio_1648959695634/work
networkx @ file:///home/conda/feedstock_root/build_artifacts/networkx_1655215393654/work
notebook @ file:///home/conda/feedstock_root/build_artifacts/notebook_1654636967533/work
numpy @ file:///Users/runner/miniforge3/conda-bld/numpy_1653325592436/work
packaging @ file:///home/conda/feedstock_root/build_artifacts/packaging_1637239678211/work
pandas==1.4.2
pandocfilters @ file:///home/conda/feedstock_root/build_artifacts/pandocfilters_1631603243851/work
parfive @ file:///home/conda/feedstock_root/build_artifacts/parfive_1641412568114/work
parso @ file:///home/conda/feedstock_root/build_artifacts/parso_1638334955874/work
partd @ file:///home/conda/feedstock_root/build_artifacts/partd_1617910651905/work
patsy @ file:///home/conda/feedstock_root/build_artifacts/patsy_1632667180946/work
pexpect @ file:///home/conda/feedstock_root/build_artifacts/pexpect_1602535608087/work
pickleshare @ file:///home/conda/feedstock_root/build_artifacts/pickleshare_1602536217715/work
Pillow @ file:///Users/runner/miniforge3/conda-bld/pillow_1653923000435/work
platformdirs @ file:///home/conda/feedstock_root/build_artifacts/platformdirs_1645298319244/work
pluggy @ file:///Users/runner/miniforge3/conda-bld/pluggy_1648772670518/work
prometheus-client @ file:///home/conda/feedstock_root/build_artifacts/prometheus_client_1649447152425/work
prompt-toolkit @ file:///home/conda/feedstock_root/build_artifacts/prompt-toolkit_1649130487073/work
psutil @ file:///Users/runner/miniforge3/conda-bld/psutil_1653089316499/work
ptyprocess @ file:///home/conda/feedstock_root/build_artifacts/ptyprocess_1609419310487/work/dist/ptyprocess-0.7.0-py2.py3-none-any.whl
pure-eval @ file:///home/conda/feedstock_root/build_artifacts/pure_eval_1642875951954/work
py @ file:///home/conda/feedstock_root/build_artifacts/py_1636301881863/work
pycparser @ file:///home/conda/feedstock_root/build_artifacts/pycparser_1636257122734/work
pyerfa @ file:///Users/runner/miniforge3/conda-bld/pyerfa_1649586164365/work
Pygments @ file:///home/conda/feedstock_root/build_artifacts/pygments_1650904496387/work
pyOpenSSL @ file:///home/conda/feedstock_root/build_artifacts/pyopenssl_1643496850550/work
pyparsing @ file:///home/conda/feedstock_root/build_artifacts/pyparsing_1652235407899/work
PyQt5==5.15.4
PyQt5-sip==12.9.0
pyrsistent @ file:///Users/runner/miniforge3/conda-bld/pyrsistent_1649013400725/work
PySocks @ file:///Users/runner/miniforge3/conda-bld/pysocks_1648857336495/work
pytest==7.1.2
pytest-cov @ file:///home/conda/feedstock_root/build_artifacts/pytest-cov_1633356845954/work
python-dateutil @ file:///home/conda/feedstock_root/build_artifacts/python-dateutil_1626286286081/work
pytz @ file:///home/conda/feedstock_root/build_artifacts/pytz_1647961439546/work
PyWavelets @ file:///Users/runner/miniforge3/conda-bld/pywavelets_1649616452114/work
PyYAML @ file:///Users/runner/miniforge3/conda-bld/pyyaml_1648757395480/work
pyzmq @ file:///Users/runner/miniforge3/conda-bld/pyzmq_1654181484979/work
qtconsole @ file:///home/conda/feedstock_root/build_artifacts/qtconsole-base_1654465674650/work
QtPy @ file:///home/conda/feedstock_root/build_artifacts/qtpy_1651524593465/work
reproject @ file:///Users/runner/miniforge3/conda-bld/reproject_1636667254707/work
requests @ file:///home/conda/feedstock_root/build_artifacts/requests_1654796491502/work
requests-file @ file:///home/conda/feedstock_root/build_artifacts/requests-file_1591227832914/work
requests-toolbelt==0.9.1
scikit-image @ file:///Users/runner/miniforge3/conda-bld/scikit-image_1655254270283/work
scipy @ file:///Users/runner/miniforge3/conda-bld/scipy_1653074153301/work
seaborn @ file:///home/conda/feedstock_root/build_artifacts/seaborn-split_1629095986539/work
semantic-version @ file:///home/conda/feedstock_root/build_artifacts/semantic_version_1653579368137/work
Send2Trash @ file:///home/conda/feedstock_root/build_artifacts/send2trash_1628511208346/work
sip @ file:///Users/runner/miniforge3/conda-bld/sip_1646101239536/work
six @ file:///home/conda/feedstock_root/build_artifacts/six_1620240208055/work
soupsieve @ file:///home/conda/feedstock_root/build_artifacts/soupsieve_1638550740809/work
SQLAlchemy @ file:///Users/runner/miniforge3/conda-bld/sqlalchemy_1654061591141/work
stack-data @ file:///home/conda/feedstock_root/build_artifacts/stack_data_1655315839047/work
statsmodels @ file:///Users/runner/miniforge3/conda-bld/statsmodels_1654787188085/work
sunpy @ file:///Users/runner/miniforge3/conda-bld/sunpy_1654821910086/work
terminado @ file:///Users/runner/miniforge3/conda-bld/terminado_1652790895044/work
tifffile @ file:///home/conda/feedstock_root/build_artifacts/tifffile_1651666912743/work
tinycss2 @ file:///home/conda/feedstock_root/build_artifacts/tinycss2_1637612658783/work
toml @ file:///home/conda/feedstock_root/build_artifacts/toml_1604308577558/work
tomli @ file:///home/conda/feedstock_root/build_artifacts/tomli_1644342247877/work
toolz @ file:///home/conda/feedstock_root/build_artifacts/toolz_1636177962100/work
tornado @ file:///Users/runner/miniforge3/conda-bld/tornado_1648827310178/work
tqdm @ file:///home/conda/feedstock_root/build_artifacts/tqdm_1649051611147/work
traitlets @ file:///home/conda/feedstock_root/build_artifacts/traitlets_1654067514780/work
typing_extensions @ file:///home/conda/feedstock_root/build_artifacts/typing_extensions_1650370875435/work
unicodedata2 @ file:///Users/runner/miniforge3/conda-bld/unicodedata2_1649111966296/work
urllib3 @ file:///home/conda/feedstock_root/build_artifacts/urllib3_1647489083693/work
wcwidth @ file:///home/conda/feedstock_root/build_artifacts/wcwidth_1600965781394/work
webencodings==0.5.1
widgetsnbextension @ file:///Users/runner/miniforge3/conda-bld/widgetsnbextension_1647447008208/work
xarray @ file:///home/conda/feedstock_root/build_artifacts/xarray_1646254587173/work
yarl @ file:///Users/runner/miniforge3/conda-bld/yarl_1648966580272/work
zeep @ file:///home/conda/feedstock_root/build_artifacts/zeep_1630310978540/work
zipp @ file:///home/conda/feedstock_root/build_artifacts/zipp_1649012893348/work
Empty file added setup.cfg
Empty file.
33 changes: 33 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
"""
Setup script to install suncet_instrument_simulator as a Python package.
Reads the requirements.txt file to get dependencies.
"""

# -----------------------------------------------------------------------------
# IMPORTS
# -----------------------------------------------------------------------------

from setuptools import find_packages, setup


# -----------------------------------------------------------------------------
# RUN setup() FUNCTION
# -----------------------------------------------------------------------------

# Read in dependencies
with open('requirements.txt', 'r') as txt_file:
requirements = [line.strip() for line in txt_file]

with open('version.txt', 'r') as txt_file:
version_string = [line.strip() for line in txt_file][]

# Run setup()
setup(
name='suncet_instrument_simulator',
version=version_string,
description='Simulate the Sun Coronal Ejection Tracker observations',
url='https://github.com/suncet/suncet_instrument_simulator',
install_requires=requirements,
packages=find_packages(),
zip_safe=False,
)
6 changes: 1 addition & 5 deletions tests/test_example.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
import sys
from pathlib import Path
p=Path(__file__).parents[1]
sys.path.append(p.as_posix())
import example
from suncet_instrument_simulator import example

def test_example():
assert example.example_func(4) == 8
Expand Down
10 changes: 0 additions & 10 deletions tests/tests.py

This file was deleted.

1 change: 1 addition & 0 deletions version.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1.0.0

0 comments on commit 3531dcf

Please sign in to comment.