fastrand 3.0.6__tar.gz → 3.0.7__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of fastrand might be problematic. Click here for more details.

@@ -1,17 +1,30 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: fastrand
3
- Version: 3.0.6
3
+ Version: 3.0.7
4
4
  Summary: Fast random number generation in Python
5
- Author: Daniel Lemire
6
- Author-email: daniel@lemire.me
5
+ Author-email: Daniel Lemire <daniel@lemire.me>
6
+ License: Apache-2.0
7
+ Project-URL: Homepage, https://github.com/lemire/fastrand
8
+ Project-URL: Repository, https://github.com/lemire/fastrand
9
+ Project-URL: Issues, https://github.com/lemire/fastrand/issues
10
+ Keywords: random,random-number-generator,pcg,xorshift,performance
11
+ Classifier: Development Status :: 5 - Production/Stable
12
+ Classifier: Intended Audience :: Developers
13
+ Classifier: Intended Audience :: Science/Research
14
+ Classifier: Programming Language :: C
15
+ Classifier: Programming Language :: Python :: 3
16
+ Classifier: Programming Language :: Python :: 3.8
17
+ Classifier: Programming Language :: Python :: 3.9
18
+ Classifier: Programming Language :: Python :: 3.10
19
+ Classifier: Programming Language :: Python :: 3.11
20
+ Classifier: Programming Language :: Python :: 3.12
21
+ Classifier: Programming Language :: Python :: 3.13
22
+ Classifier: Topic :: Scientific/Engineering
23
+ Classifier: Topic :: Software Development :: Libraries
24
+ Requires-Python: >=3.8
7
25
  Description-Content-Type: text/markdown
8
26
  License-File: LICENSE
9
- Dynamic: author
10
- Dynamic: author-email
11
- Dynamic: description
12
- Dynamic: description-content-type
13
27
  Dynamic: license-file
14
- Dynamic: summary
15
28
 
16
29
  # fastrand
17
30
 
@@ -72,36 +85,53 @@ The pcg32 generator is a 32-bit generator so it generates values in the interval
72
85
  The xorshift128+ generator is a 64-bit generator so that it can generate values in a 64-bit range (up to `2**64-1`).
73
86
 
74
87
 
88
+ ## Installation
89
+
75
90
  If you have Linux, macOS or Windows, you should be able to do just pip install...
76
91
 
77
- ```
92
+ ```bash
78
93
  pip install fastrand
79
94
  ```
80
95
 
81
96
  You may need root access (sudo on macOS and Linux).
82
97
 
83
- It is sometimes useful to install a specific version, you can do so as follows;
98
+ It is sometimes useful to install a specific version, you can do so as follows:
84
99
 
85
- ```
100
+ ```bash
86
101
  pip install fastrand==1.2.4
87
102
  ```
88
103
 
104
+ ### Using uv (recommended)
105
+
106
+ [uv](https://github.com/astral-sh/uv) is a fast Python package installer and resolver.
107
+
108
+ To add fastrand as a dependency to your project:
89
109
 
110
+ ```bash
111
+ uv add fastrand
112
+ ```
113
+
114
+ Or to install it directly into your current environment:
115
+
116
+ ```bash
117
+ uv pip install fastrand
118
+ ```
90
119
 
91
- Generally, you can build the library as follows (if you have root):
120
+ ### Building from source
92
121
 
122
+ With uv:
93
123
 
94
124
  ```bash
95
- python setup.py build
96
- python setup.py install
125
+ uv build
126
+ uv pip install dist/*.whl
97
127
  ```
98
128
 
99
- or
129
+ Or with standard tools:
100
130
 
101
131
  ```bash
102
- python setup.py build
103
- python setup.py install --home=$HOME
104
- export PYTHONPATH=$PYTHONPATH:~/lib/python
132
+ pip install build
133
+ python -m build
134
+ pip install dist/*.whl
105
135
  ```
106
136
 
107
137
 
@@ -57,36 +57,53 @@ The pcg32 generator is a 32-bit generator so it generates values in the interval
57
57
  The xorshift128+ generator is a 64-bit generator so that it can generate values in a 64-bit range (up to `2**64-1`).
58
58
 
59
59
 
60
+ ## Installation
61
+
60
62
  If you have Linux, macOS or Windows, you should be able to do just pip install...
61
63
 
62
- ```
64
+ ```bash
63
65
  pip install fastrand
64
66
  ```
65
67
 
66
68
  You may need root access (sudo on macOS and Linux).
67
69
 
68
- It is sometimes useful to install a specific version, you can do so as follows;
70
+ It is sometimes useful to install a specific version, you can do so as follows:
69
71
 
70
- ```
72
+ ```bash
71
73
  pip install fastrand==1.2.4
72
74
  ```
73
75
 
76
+ ### Using uv (recommended)
77
+
78
+ [uv](https://github.com/astral-sh/uv) is a fast Python package installer and resolver.
79
+
80
+ To add fastrand as a dependency to your project:
74
81
 
82
+ ```bash
83
+ uv add fastrand
84
+ ```
85
+
86
+ Or to install it directly into your current environment:
87
+
88
+ ```bash
89
+ uv pip install fastrand
90
+ ```
75
91
 
76
- Generally, you can build the library as follows (if you have root):
92
+ ### Building from source
77
93
 
94
+ With uv:
78
95
 
79
96
  ```bash
80
- python setup.py build
81
- python setup.py install
97
+ uv build
98
+ uv pip install dist/*.whl
82
99
  ```
83
100
 
84
- or
101
+ Or with standard tools:
85
102
 
86
103
  ```bash
87
- python setup.py build
88
- python setup.py install --home=$HOME
89
- export PYTHONPATH=$PYTHONPATH:~/lib/python
104
+ pip install build
105
+ python -m build
106
+ pip install dist/*.whl
90
107
  ```
91
108
 
92
109
 
@@ -1,17 +1,30 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: fastrand
3
- Version: 3.0.6
3
+ Version: 3.0.7
4
4
  Summary: Fast random number generation in Python
5
- Author: Daniel Lemire
6
- Author-email: daniel@lemire.me
5
+ Author-email: Daniel Lemire <daniel@lemire.me>
6
+ License: Apache-2.0
7
+ Project-URL: Homepage, https://github.com/lemire/fastrand
8
+ Project-URL: Repository, https://github.com/lemire/fastrand
9
+ Project-URL: Issues, https://github.com/lemire/fastrand/issues
10
+ Keywords: random,random-number-generator,pcg,xorshift,performance
11
+ Classifier: Development Status :: 5 - Production/Stable
12
+ Classifier: Intended Audience :: Developers
13
+ Classifier: Intended Audience :: Science/Research
14
+ Classifier: Programming Language :: C
15
+ Classifier: Programming Language :: Python :: 3
16
+ Classifier: Programming Language :: Python :: 3.8
17
+ Classifier: Programming Language :: Python :: 3.9
18
+ Classifier: Programming Language :: Python :: 3.10
19
+ Classifier: Programming Language :: Python :: 3.11
20
+ Classifier: Programming Language :: Python :: 3.12
21
+ Classifier: Programming Language :: Python :: 3.13
22
+ Classifier: Topic :: Scientific/Engineering
23
+ Classifier: Topic :: Software Development :: Libraries
24
+ Requires-Python: >=3.8
7
25
  Description-Content-Type: text/markdown
8
26
  License-File: LICENSE
9
- Dynamic: author
10
- Dynamic: author-email
11
- Dynamic: description
12
- Dynamic: description-content-type
13
27
  Dynamic: license-file
14
- Dynamic: summary
15
28
 
16
29
  # fastrand
17
30
 
@@ -72,36 +85,53 @@ The pcg32 generator is a 32-bit generator so it generates values in the interval
72
85
  The xorshift128+ generator is a 64-bit generator so that it can generate values in a 64-bit range (up to `2**64-1`).
73
86
 
74
87
 
88
+ ## Installation
89
+
75
90
  If you have Linux, macOS or Windows, you should be able to do just pip install...
76
91
 
77
- ```
92
+ ```bash
78
93
  pip install fastrand
79
94
  ```
80
95
 
81
96
  You may need root access (sudo on macOS and Linux).
82
97
 
83
- It is sometimes useful to install a specific version, you can do so as follows;
98
+ It is sometimes useful to install a specific version, you can do so as follows:
84
99
 
85
- ```
100
+ ```bash
86
101
  pip install fastrand==1.2.4
87
102
  ```
88
103
 
104
+ ### Using uv (recommended)
105
+
106
+ [uv](https://github.com/astral-sh/uv) is a fast Python package installer and resolver.
107
+
108
+ To add fastrand as a dependency to your project:
89
109
 
110
+ ```bash
111
+ uv add fastrand
112
+ ```
113
+
114
+ Or to install it directly into your current environment:
115
+
116
+ ```bash
117
+ uv pip install fastrand
118
+ ```
90
119
 
91
- Generally, you can build the library as follows (if you have root):
120
+ ### Building from source
92
121
 
122
+ With uv:
93
123
 
94
124
  ```bash
95
- python setup.py build
96
- python setup.py install
125
+ uv build
126
+ uv pip install dist/*.whl
97
127
  ```
98
128
 
99
- or
129
+ Or with standard tools:
100
130
 
101
131
  ```bash
102
- python setup.py build
103
- python setup.py install --home=$HOME
104
- export PYTHONPATH=$PYTHONPATH:~/lib/python
132
+ pip install build
133
+ python -m build
134
+ pip install dist/*.whl
105
135
  ```
106
136
 
107
137
 
@@ -1,7 +1,7 @@
1
1
  LICENSE
2
2
  README.md
3
3
  fastrandmodule.c
4
- setup.py
4
+ pyproject.toml
5
5
  fastrand.egg-info/PKG-INFO
6
6
  fastrand.egg-info/SOURCES.txt
7
7
  fastrand.egg-info/dependency_links.txt
@@ -0,0 +1,55 @@
1
+ [build-system]
2
+ requires = ["setuptools>=74.1.0", "wheel"]
3
+ build-backend = "setuptools.build_meta"
4
+
5
+ [project]
6
+ name = "fastrand"
7
+ version = "3.0.7"
8
+ description = "Fast random number generation in Python"
9
+ readme = "README.md"
10
+ authors = [
11
+ {name = "Daniel Lemire", email = "daniel@lemire.me"}
12
+ ]
13
+ requires-python = ">=3.8"
14
+ license = {text = "Apache-2.0"}
15
+ keywords = ["random", "random-number-generator", "pcg", "xorshift", "performance"]
16
+ classifiers = [
17
+ "Development Status :: 5 - Production/Stable",
18
+ "Intended Audience :: Developers",
19
+ "Intended Audience :: Science/Research",
20
+ "Programming Language :: C",
21
+ "Programming Language :: Python :: 3",
22
+ "Programming Language :: Python :: 3.8",
23
+ "Programming Language :: Python :: 3.9",
24
+ "Programming Language :: Python :: 3.10",
25
+ "Programming Language :: Python :: 3.11",
26
+ "Programming Language :: Python :: 3.12",
27
+ "Programming Language :: Python :: 3.13",
28
+ "Topic :: Scientific/Engineering",
29
+ "Topic :: Software Development :: Libraries",
30
+ ]
31
+
32
+ [project.urls]
33
+ Homepage = "https://github.com/lemire/fastrand"
34
+ Repository = "https://github.com/lemire/fastrand"
35
+ Issues = "https://github.com/lemire/fastrand/issues"
36
+
37
+ [tool.setuptools]
38
+ ext-modules = [
39
+ {name = "fastrand", sources = ["fastrandmodule.c"]}
40
+ ]
41
+
42
+ [tool.cibuildwheel]
43
+ # Build wheels for all platforms
44
+
45
+ [tool.cibuildwheel.macos]
46
+ # Build for Intel, Apple Silicon, and Universal2 binaries
47
+ archs = ["x86_64", "universal2", "arm64"]
48
+
49
+ [tool.cibuildwheel.linux]
50
+ # Build for common Linux architectures
51
+ archs = ["x86_64"]
52
+
53
+ [tool.cibuildwheel.windows]
54
+ # Build for 64-bit Windows (32-bit is rarely needed nowadays)
55
+ archs = ["AMD64"]
fastrand-3.0.6/setup.py DELETED
@@ -1,12 +0,0 @@
1
- from setuptools import setup, Extension
2
-
3
- module1 = Extension('fastrand', sources = ['fastrandmodule.c'])
4
-
5
- setup (name = 'fastrand',
6
- author="Daniel Lemire",
7
- version = '3.0.6',
8
- author_email='daniel@lemire.me',
9
- long_description = open('README.md', 'r', encoding="utf-8").read(),
10
- long_description_content_type = 'text/markdown',
11
- description = 'Fast random number generation in Python',
12
- ext_modules = [module1])
File without changes
File without changes
File without changes