Skip to content

Commit cf77770

Browse files
authored
Merge pull request #127 from gesinecauer/fix_install_from_repo
FIX installation and workflows
2 parents 366ebc2 + f64438c commit cf77770

File tree

4 files changed

+61
-50
lines changed

4 files changed

+61
-50
lines changed

.github/workflows/build-doc.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,12 @@ jobs:
99
build:
1010
name: Build docs
1111
runs-on: ubuntu-latest
12+
13+
timeout-minutes: 10
14+
15+
strategy:
16+
fail-fast: false
17+
1218
steps:
1319
- name: Checkout 🛎️
1420
uses: actions/checkout@v2
@@ -18,7 +24,7 @@ jobs:
1824
- name: Setup Python
1925
uses: actions/setup-python@v2
2026
with:
21-
python-version: 3.8
27+
python-version: 3.9
2228

2329
- name: Installation of the package
2430
shell: bash -l {0}

.github/workflows/test.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,17 @@ jobs:
66
name: linux-cp${{ matrix.python-version }}-${{ matrix.OPTIONS_NAME }}
77
runs-on: ubuntu-latest
88

9+
timeout-minutes: 10
10+
911
strategy:
10-
fail-fast: true
12+
fail-fast: false
1113
matrix:
1214
python-version: ["3.9", "3.10", "3.11", "3.12"]
1315
PIP_FLAGS: [""]
1416
MINIMUM_REQUIREMENTS: [0]
1517
include:
1618
- platform_id: manylinux_x86_64
17-
python-version: 3.7
19+
python-version: 3.9
1820
MINIMUM_REQUIREMENTS: 1
1921
OPTIONS_NAME: "min"
2022

pyproject.toml

Lines changed: 47 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,48 @@
11
[build-system]
2-
requires=['setuptools', 'wheel', 'numpy', 'scipy']
2+
requires = ["setuptools>=77", "wheel", "numpy", "scipy", "cython"]
3+
build-backend = "setuptools.build_meta"
4+
5+
[project]
6+
name = "iced"
7+
requires-python = ">= 3.9"
8+
version = "0.6.0a0.dev0"
9+
dependencies = [
10+
"numpy>=1.16.0",
11+
"scipy>=0.19.0",
12+
]
13+
readme = "README.rst"
14+
description = "ICE normalization"
15+
license = "BSD-3-Clause"
16+
license-files = ["LICENSE"]
17+
keywords = ["iced", "hi-c", "chromatin"]
18+
authors = [
19+
{name = "Nelle Varoquaux", email = "[email protected]"}
20+
]
21+
maintainers = [
22+
{name = "Nelle Varoquaux", email = "[email protected]"}
23+
]
24+
classifiers=[
25+
'Development Status :: 3 - Alpha',
26+
'Intended Audience :: Science/Research',
27+
'Intended Audience :: Developers',
28+
'Programming Language :: Python',
29+
'Topic :: Utilities',
30+
'Topic :: Software Development',
31+
'Topic :: Scientific/Engineering',
32+
'Operating System :: Microsoft :: Windows',
33+
'Operating System :: POSIX',
34+
'Operating System :: Unix',
35+
'Operating System :: MacOS']
36+
37+
[project.scripts]
38+
ice = "iced.scripts.ice:main"
39+
40+
[project.urls]
41+
Homepage = "https://hiclib.github.io/iced/"
42+
Documentation = "https://hiclib.github.io/iced/documentation.html"
43+
Repository = "https://github.com/hiclib/iced.git"
44+
Issues = "https://github.com/hiclib/iced/issues"
45+
Download = "https://github.com/hiclib/iced/releases"
46+
47+
[tool.setuptools]
48+
include-package-data = true

setup.py

Lines changed: 3 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -1,57 +1,14 @@
1-
import os
2-
import sys
3-
from setuptools import Extension, setup, find_packages
1+
from setuptools import Extension, setup
42
import numpy as np
53

64

7-
DISTNAME = 'iced'
8-
DESCRIPTION = 'ICE normalization'
9-
MAINTAINER = 'Nelle Varoquaux'
10-
MAINTAINER_EMAIL = '[email protected]'
11-
VERSION = "0.6.0a0.dev0"
12-
LICENSE = "BSD"
13-
14-
15-
SCIPY_MIN_VERSION = '0.19.0'
16-
NUMPY_MIN_VERSION = '1.16.0'
17-
18-
extension_config = {
19-
"_filter": [
20-
{"sources": ["_filter.pyx"]}
21-
],
22-
"normalization": [
23-
{"sources": ["_normalization.pyx"]}
24-
]
25-
}
26-
27-
285
setup(
29-
name=DISTNAME,
30-
version=VERSION,
31-
author=MAINTAINER,
32-
author_email=MAINTAINER_EMAIL,
33-
description=DESCRIPTION,
34-
license=LICENSE,
35-
classifiers=[
36-
"Development Status :: 3 - Alpha",
37-
"Topic :: Utilities",
38-
"License :: OSI Approved :: BSD License",
39-
],
40-
packages=find_packages(where="."),
416
ext_modules=[
427
Extension(name="iced._filter_",
438
sources=["iced/_filter_.pyx"],
44-
include_dirs=[np.get_include()]
45-
),
46-
Extension(name="iced.normalization/_normalization_",
9+
include_dirs=[np.get_include()]),
10+
Extension(name="iced.normalization._normalization_",
4711
sources=["iced/normalization/_normalization_.pyx"],
4812
include_dirs=[np.get_include()]
4913
)],
50-
include_package_data=True,
51-
entry_points={
52-
'console_scripts': [
53-
'ice = iced.scripts.ice:main',
54-
]
55-
}
5614
)
57-

0 commit comments

Comments
 (0)