Skip to content

Commit

Permalink
Merge pull request #81 from andreatramacere/v1.3.x
Browse files Browse the repository at this point in the history
V1.3.x
  • Loading branch information
andreatramacere authored May 24, 2024
2 parents a068e3a + c4de8ce commit e239800
Show file tree
Hide file tree
Showing 93 changed files with 31,981 additions and 4,381 deletions.
37 changes: 37 additions & 0 deletions .github/conda-pipeline/github/_template_meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{% set data = load_setup_py_data(setup_file='../../../setup.py', from_recipe_dir=True) %}
{% set version = data.get('version') %}

package:
name: jetset
version: {{ version }}

source:
path: ../../../

build:
preserve_egg_dir: True
script_env:
- JETSETBESSELBUILD

requirements:

build:
- swig>3.0.0
- python {{ python }}
- setuptools
# - numpy this will come from requirements.txt

run:
# - entries from requirements.txt



about:
home: https://github.com/andreatramacere/jetset
license: BSD-3
summary: ''
license_family: BSD

extra:
recipe-maintainers:
- andreatramacere
3 changes: 1 addition & 2 deletions .github/conda-pipeline/github/build.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#!/bin/bash
echo '>>>>>>>>>>>>>>>>>>>',$PWD
$PYTHON setup.py clean
$PYTHON setup.py install
pip install . -v
22 changes: 11 additions & 11 deletions .github/conda-pipeline/github/meta.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

{% set data = load_setup_py_data(setup_file='../../../setup.py', from_recipe_dir=True) %}
{% set version = data.get('version') %}

Expand All @@ -19,30 +20,28 @@ requirements:
- swig>3.0.0
- python {{ python }}
- setuptools
- numpy>=1.18,<1.22
- numpy>=1.22,<1.25

run:
- python>=3.7
- python>=3.8
- setuptools
- scipy>=1.5.0
- numpy>=1.18,<1.22
- astropy>=4.0,<=5
- matplotlib>3.1.0
- numpy>=1.22,<1.25
- astropy>=5.0.1,<=6
- matplotlib>=3.1.0
- future
- iminuit>2.0.0
- iminuit>=2.0.0
- corner
- six
- emcee>=3.0.0
- pyyaml
- pyqt
- pytest
- numba>0.55
- tqdm
- jupyter
- ipython
- tqdm
- dill



about:
home: https://github.com/andreatramacere/jetset
license: BSD-3
Expand All @@ -51,4 +50,5 @@ about:

extra:
recipe-maintainers:
- andreatramacere
- andreatramacere

20 changes: 20 additions & 0 deletions .github/workflows/conda_rename.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import os
import platform
import shutil
name=os.getenv('CONDABUILDJETSET')

if platform.system()=='Darwin':
system_str = 'macos'
else:
system_str = 'linux'

if 'arm64' in platform.platform():
system_str= '%s_arm64'%system_str

new_name=name.replace('.tar.bz2','_conda_%s.tar.bz2'%system_str)

shutil.move(name,new_name)

os.makedirs('conda-binary')

shutil.move(new_name,'conda-binary')
File renamed without changes.
72 changes: 72 additions & 0 deletions .github/workflows/requirements_to_conda_yml.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
import shutil

_str_end="""
about:
home: https://github.com/andreatramacere/jetset
license: BSD-3
summary: ''
license_family: BSD
extra:
recipe-maintainers:
- andreatramacere
"""




_skip_list=['pyqt','swig']
f = open("./requirements.txt",'r')
req=f.readlines()
f.close()

req=[n.strip() for n in req]
for r in req[:]:
for s in _skip_list[:]:

if s in r:
req.remove(r)


np_str=''
pkg_str_list=[]
for r in req:
if r.startswith('#') is False:
if 'numpy' in r:
np_str=r
pkg_str_list.append(r)

_str_start="""
{% set data = load_setup_py_data(setup_file='../../../setup.py', from_recipe_dir=True) %}
{% set version = data.get('version') %}
package:
name: jetset
version: {{ version }}
source:
path: ../../../
build:
preserve_egg_dir: True
script_env:
- JETSETBESSELBUILD
requirements:
build:
- swig>3.0.0
- python {{ python }}
- setuptools"""

f = open(".github/conda-pipeline/github/meta.yaml",'w')
print(_str_start,file=f)
print( ' - %s'%np_str, file=f)

print('',file=f)
print(' run:',file=f)
print(' - python>=3.8', file=f)
for pkg_str in pkg_str_list:
print(' - %s'%pkg_str, file=f)
print(_str_end,file=f)
f.close()
Loading

0 comments on commit e239800

Please sign in to comment.