Skip to content

Commit

Permalink
update whole travis cI, add requirements etc
Browse files Browse the repository at this point in the history
  • Loading branch information
EhsanGharibNezhad committed Nov 27, 2023
1 parent d5398c6 commit 3a8e87f
Show file tree
Hide file tree
Showing 4 changed files with 48 additions and 55 deletions.
62 changes: 25 additions & 37 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,43 +1,31 @@
# .travis.yml

dist: xenial

language: python

cache: pip

python:
- "3.6"
- "3.7"
- "3.8"
- "nightly"

matrix:
include:
- python: 3.8

git:
submodules: true

jobs:
include:
- name: "Python 3.9 on macOS"
os: osx
language: python
python: 3.9
git:
submodules: true
install:
- pip install TelescopeML
script:
- python3.9 setup.py develop
branches:
only:
- main # Adjust to your main branch name, e.g., master
notifications:
email: false


- name: "Python 3.9 on Xenial Linux"
language: python
python: 3.9
install:
- pip install TelescopeML
script:
- python3.9 setup.py develop
branches:
only:
- main # Adjust to your main branch name, e.g., master
notifications:
email: false
allow_failures:
- python: "nightly"

install:
- pip install pipenv --upgrade-strategy=only-if-needed
- pipenv install --dev

script:
- bash scripts/test.sh

after_script:
- bash <(curl -s https://codecov.io/bash)


#language: python
#python:
Expand Down
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# TelescopeML

[![PyPI - Latest Release](https://img.shields.io/pypi/v/TelescopeML.svg?logo=pypi&logoColor=white&label=PyPI)](https://pypi.python.org/pypi/TelescopeML)
[![PyPI - Python Versions](https://img.shields.io/pypi/pyversions/TelescopeML.svg?logo=python&logoColor=white&label=Python)](https://pypi.python.org/pypi/TelescopeML)
[![Build Status](https://app.travis-ci.com/EhsanGharibNezhad/TelescopeML.svg?branch=main)](https://app.travis-ci.com/EhsanGharibNezhad/TelescopeML)

``TelescopeML`` is a Python package comprising a series of modules, each equipped with specialized machine learning and
Expand Down
15 changes: 15 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
numpy==1.26.1
bokeh
pandas
astropy
matplotlib
seaborn==0.12.2
sphinx==7.2.6
scipy==1.11.1
keras==2.14.0
tensorflow==2.14.0
jupyterlab
sphinx
spectres==2.2.0
scikit-learn==1.3.0

25 changes: 8 additions & 17 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,19 @@
# read the contents of your README file
from pathlib import Path
this_directory = Path(__file__).parent

long_description = (this_directory / "README.md").read_text()

with open("requirements.txt", 'r') as fh:
requirements = fh.read().splitlines()

# Read the __version__.py file
with open('TelescopeML/__version__.py', 'r') as f:
ver = f.read()

setup(
name='TelescopeML',
version = '0.0.2', # MAJOR.MINOR.PATCH
version = ver, # MAJOR.MINOR.PATCH
description = 'An End-to-End Python Package for Interpreting Telescope Datasets through Training Machine Learning Models, Generating Statistical Reports, and Visualizing Results',
long_description = long_description,
long_description_content_type='text/markdown',
Expand All @@ -29,21 +35,6 @@
'Topic :: Software Development :: Libraries :: Python Modules'
],
packages=find_packages(exclude=('tests', 'docs')),
install_requires=[
'numpy==1.26.1',
'bokeh',
'pandas',
'astropy',
'matplotlib',
'seaborn==0.12.2',
'sphinx==7.2.6',
'scipy==1.11.1',
'keras==2.14.0',
'tensorflow==2.14.0',
'jupyterlab',
'sphinx',
'spectres==2.2.0',
'scikit-learn==1.3.0',
],
install_requires=requirements,
zip_safe = False,
)

0 comments on commit 3a8e87f

Please sign in to comment.