Skip to content

Commit f64a035

Browse files
committed
pypi package trails stable
Signed-off-by: Amith <amitharun3@gmail.com>
1 parent 290c1c0 commit f64a035

File tree

8 files changed

+78
-57
lines changed

8 files changed

+78
-57
lines changed

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2022 Amith M
3+
Copyright (c) 2022 Amith225
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

MANIFEST.in

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# MANIFEST.in
22

33
include docs/*
4-
include src/NPerlinNoise/*.toml
4+
include src/NPerlinNoise/*
55
include snaps/*
66
include tests/*
7+
include README_pypi.md

README.md

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,20 @@
11
# N Perlin Noise
22

33
### A robust open source implementation of Perlin Noise Algorithm for N-Dimensions in Python.
4-
- A powerful and fast API for n-dimensional noise.
5-
- Easy hyper-parameters selection of octaves, lacunarity and persistence
4+
- A _powerful_ and _fast_ API for _n-dimensional_ noise.
5+
- Easy hyper-parameters selection of _octaves_, _lacunarity_ and _persistence_
66
as well as complex and customizable hyper-parameters for n-dimension
7-
frequency, waveLength, warp(interpolation) and range.
7+
_frequency_, _waveLength_, _warp_(interpolation) and _range_.
88
- Includes various helpful tools for noise generation and for procedural generation tasks
9-
such as customizable Gradient, Warp classes.
10-
- Implements custom PRNG generator for n-dimension and can be easily tuned.
9+
such as customizable _Gradient_, _Color Gradients_, _Warp_ classes.
10+
- Implements custom _PRNG_ generator for n-dimension and can be easily tuned.
1111

1212
**Details**:
1313
- **Technology stack**:
14-
- **Status**: [v0.1.2-alpha](https://github.com/Amith225/NPerlinNoise/releases/tag/v0.1.2-alpha)
15-
- [CHANGELOG](docs/CHANGELOG.md)
14+
> **Status**: **`v0.1.2-alpha9`** Packaging Trails<br>
15+
> **All Packages**: [releases](https://github.com/Amith225/NPerlinNoise/releases)<br>
16+
> **PyPI**: [v0.1.2a10](https://test.pypi.org/project/NPerlinNoise/0.1.2a10/)<br>
17+
> [CHANGELOG](docs/CHANGELOG.md)<br>
1618
1719
**Screenshots**:
1820
- raw
@@ -41,14 +43,15 @@
4143
---
4244

4345
## Dependencies
44-
- Python>=3.10.0
46+
- `Python>=3.10.0`
4547

4648
for production dependencies see [Requirements](requirements.txt)<br>
4749
for development dependencies see [Dev-Requirements](requirements_dev.txt)
4850

4951
## Installation
5052
for detailed instruction on installation see [INSTALLATION](docs/INSTALL.md).
5153

54+
<a id="usage"></a>
5255
## Usage
5356
for detailed usage see [EXAMPLE](tests/main.py)
5457

@@ -76,7 +79,7 @@ open a [discussion](https://github.com/Amith225/NPerlinNoise/discussions/7) in t
7679

7780

7881
## Getting involved
79-
- Looking for Contributors for WebApps
82+
- `Looking for Contributors for WebApps`
8083
- [Fork](https://github.com/Amith225/NPerlinNoise/fork) the repository
8184
and issue a [PR](https://github.com/Amith225/NPerlinNoise/pulls) to contribute
8285

Lines changed: 27 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,20 @@
11
# N Perlin Noise
22

33
### A robust open source implementation of Perlin Noise Algorithm for N-Dimensions in Python.
4-
- A powerful and fast API for n-dimensional noise.
5-
- Easy hyper-parameters selection of octaves, lacunarity and persistence
4+
- A _powerful_ and _fast_ API for _n-dimensional_ noise.
5+
- Easy hyper-parameters selection of _octaves_, _lacunarity_ and _persistence_
66
as well as complex and customizable hyper-parameters for n-dimension
7-
frequency, waveLength, warp(interpolation) and range.
7+
_frequency_, _waveLength_, _warp_(interpolation) and _range_.
88
- Includes various helpful tools for noise generation and for procedural generation tasks
9-
such as customizable Gradient, Warp classes.
10-
- Implements custom PRNG generator for n-dimension and can be easily tuned.
9+
such as customizable _Gradient_, _Color Gradients_, _Warp_ classes.
10+
- Implements custom _PRNG_ generator for n-dimension and can be easily tuned.
1111

1212
**Details**:
1313
- **Technology stack**:
14-
- **Status**: [v0.1.2-alpha](https://github.com/Amith225/NPerlinNoise/releases/tag/v0.1.2-alpha)
15-
- [CHANGELOG](https://raw.github.com/Amith225/NPerlinNoise/master/docs/CHANGELOG.md)
14+
> **Status**: **`v0.1.2-alpha9`** Packaging Trails<br>
15+
> **All Packages**: [releases](https://github.com/Amith225/NPerlinNoise/releases)<br>
16+
> **PyPI**: [](https://github.com/Amith225/NPerlinNoise/blob/master/)<br>
17+
> [CHANGELOG](https://github.com/Amith225/NPerlinNoise/blob/master/docs/CHANGELOG.md)<br>
1618
1719
**Screenshots**:
1820
- raw
@@ -41,33 +43,34 @@
4143
---
4244

4345
## Dependencies
44-
- Python>=3.10.0
46+
- `Python>=3.10.0`
4547

4648
for production dependencies see [Requirements](https://raw.github.com/Amith225/NPerlinNoise/master/requirements.txt)<br>
4749
for development dependencies see [Dev-Requirements](https://raw.github.com/Amith225/NPerlinNoise/master/requirements_dev.txt)
4850

4951
## Installation
50-
for detailed instruction on installation see [INSTALLATION](https://raw.github.com/Amith225/NPerlinNoise/master/docs/INSTALL.md).
52+
for detailed instruction on installation see [INSTALLATION](https://github.com/Amith225/NPerlinNoise/blob/master/docs/INSTALL.md).
5153

54+
<a id="usage"></a>
5255
## Usage
53-
for detailed usage see [EXAMPLE](https://raw.github.com/Amith225/NPerlinNoise/master/tests/main.py)
56+
for detailed usage see [EXAMPLE](https://github.com/Amith225/NPerlinNoise/blob/master/tests/main.py)
5457

5558
## How to test the software
56-
- To test overalls run [main](https://raw.github.com/Amith225/NPerlinNoise/master/tests/main.py)
57-
- To test Logical consistency run [testLogic](https://raw.github.com/Amith225/NPerlinNoise/master/tests/testLogic.py)
58-
- To test Profile Benchmarking run [testProfile](https://raw.github.com/Amith225/NPerlinNoise/master/tests/testProfile.py)
59-
- To test Visuals run [testVisuals](https://raw.github.com/Amith225/NPerlinNoise/master/tests/testVisuals.py)
60-
- To test Colors run [testCol](https://raw.github.com/Amith225/NPerlinNoise/master/tests/testCol.py)
59+
- To test overalls run [main](https://github.com/Amith225/NPerlinNoise/blob/master/tests/main.py)
60+
- To test Logical consistency run [testLogic](https://github.com/Amith225/NPerlinNoise/blob/master/tests/testLogic.py)
61+
- To test Profile Benchmarking run [testProfile](https://github.com/Amith225/NPerlinNoise/blob/master/tests/testProfile.py)
62+
- To test Visuals run [testVisuals](https://github.com/Amith225/NPerlinNoise/blob/master/tests/testVisuals.py)
63+
- To test Colors run [testCol](https://github.com/Amith225/NPerlinNoise/blob/master/tests/testCol.py)
6164

62-
to see all tests see [Tests](https://raw.github.com/Amith225/NPerlinNoise/master/tests)
65+
to see all tests see [Tests](https://github.com/Amith225/NPerlinNoise/blob/master/tests)
6366

6467
## Known issues
6568
- **_`No Known Bugs`_**
6669
- **_`NPerlin.findBounds is bottleneck`_**
6770

6871
## Getting help
69-
- Check [main.py](https://raw.github.com/Amith225/NPerlinNoise/master/tests/main.py) for detailed usage
70-
- Check [docs](https://raw.github.com/Amith225/NPerlinNoise/master/docs) for all documentations
72+
- Check [main.py](https://github.com/Amith225/NPerlinNoise/blob/master/tests/main.py) for detailed usage
73+
- Check [docs](https://github.com/Amith225/NPerlinNoise/blob/master/docs) for all documentations
7174
- Check [Usage](#usage) Section
7275

7376
If you have questions, concerns, bug reports, etc,
@@ -76,24 +79,24 @@ open a [discussion](https://github.com/Amith225/NPerlinNoise/discussions/7) in t
7679

7780

7881
## Getting involved
79-
- Looking for Contributors for WebApps
82+
- `Looking for Contributors for WebApps`
8083
- [Fork](https://github.com/Amith225/NPerlinNoise/fork) the repository
8184
and issue a [PR](https://github.com/Amith225/NPerlinNoise/pulls) to contribute
8285

83-
General instructions on _how_ to contribute [CONTRIBUTING](https://raw.github.com/Amith225/NPerlinNoise/master/docs/CONTRIBUTING.md).
86+
General instructions on _how_ to contribute [CONTRIBUTING](https://github.com/Amith225/NPerlinNoise/blob/master/docs/CONTRIBUTING.md).
8487

8588
----
8689

8790
## Open source licensing info
88-
1. [TERMS](https://raw.github.com/Amith225/NPerlinNoise/master/docs/TERMS.md)
89-
2. [LICENSE](https://raw.github.com/Amith225/NPerlinNoise/master/LICENSE)
91+
1. [TERMS](https://github.com/Amith225/NPerlinNoise/blob/master/docs/TERMS.md)
92+
2. [LICENSE](https://github.com/Amith225/NPerlinNoise/blob/master/LICENSE)
9093
3. [CFPB Source Code Policy](https://github.com/cfpb/source-code-policy/)
9194

9295
----
9396

9497
## Credits and references
9598
1. Inspired from [The Coding Train](https://www.youtube.com/channel/UCvjgXvBlbQiydffZU7m1_aw) -> [perlin noise](https://thecodingtrain.com/challenges/24-perlin-noise-flow-field)
9699
2. hash function by [xxhash](https://github.com/Cyan4973/xxHash)
97-
inspired the [rand3](https://raw.github.com/Amith225/NPerlinNoise/master/src/NPerlinNoise/tools.py) algo
98-
and ultimately helped for O(1) time complexity n-dimensional random generator [NPrng](https://raw.github.com/Amith225/NPerlinNoise/master/src/NPerlinNoise/tools.py)
100+
inspired the [rand3](https://github.com/Amith225/NPerlinNoise/blob/master/src/NPerlinNoise/tools.py) algo
101+
and ultimately helped for O(1) time complexity n-dimensional random generator [NPrng](https://github.com/Amith225/NPerlinNoise/blob/master/src/NPerlinNoise/tools.py)
99102
3. [StackOverflow](https://stackoverflow.com/) for helping on various occasions throughout the development

docs/CHANGELOG.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1-
## v0.1.0@alpha:
1+
## v0.1.0-alpha:
22
- first public release
3-
- docs pending
3+
4+
## v0.1.[1,2]-alpha:
5+
- bugs fixed
6+
- docs implemented
7+
- readability improved
8+
9+
## v0.1.2-alpha[x]:
10+
- packaging trails

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ build-backend = "setuptools.build_meta"
66

77
[project]
88
name = "NPerlinNoise"
9-
version = "0.1.2-alpha4"
9+
version = "0.1.2-alpha10"
1010
description = "A robust open source implementation of Perlin Noise Algorithm for N-Dimensions"
11-
readme = "READMEpypi.md"
11+
readme = "README_pypi.md"
1212
authors = [{ name = "Amith225", email = "amitharun3@gmail.com" }]
1313
license = { file = "LICENSE" }
1414
classifiers = [

readme.py

Lines changed: 24 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -10,22 +10,29 @@ def find_all(a_str, sub, overlap=False):
1010
start_ += len(sub)
1111

1212

13-
with open('README.md', 'r') as file:
14-
content = file.read()
13+
def get_embed_readme():
14+
with open('README.md', 'r') as _file:
15+
content = _file.read()
1516

16-
_content = ""
17-
_end = -1
18-
ignore = ["#usage"]
19-
base = 'https://raw.github.com/Amith225/NPerlinNoise/master/'
20-
for start, end in zip(find_all(content, '['), find_all(content, ']')):
21-
_content += content[_end + 1:start]
22-
end += 1
23-
alt_text = content[start:end]
24-
_start, _end = end + 1, content.find(')', end)
25-
link = content[_start:_end]
26-
if not link.startswith('http') and link not in ignore: link = base + link
27-
_content += alt_text + f"({link})"
28-
_content += content[_end + 1:]
17+
_content = ""
18+
_end = -1
19+
ignore = ["#usage"]
20+
raw = ['.png', '.txt']
21+
base_raw = 'https://raw.github.com/Amith225/NPerlinNoise/master/'
22+
base = 'https://github.com/Amith225/NPerlinNoise/blob/master/'
23+
for start, end in zip(find_all(content, '['), find_all(content, ']')):
24+
_content += content[_end + 1:start]
25+
end += 1
26+
alt_text = content[start:end]
27+
_start, _end = end + 1, content.find(')', end)
28+
link = content[_start:_end]
29+
if not link.startswith('http') and link not in ignore:
30+
link = (base_raw if any(link.endswith(r) for r in raw) else base) + link
31+
_content += alt_text + f"({link})"
32+
_content += content[_end + 1:]
2933

30-
with open('READMEpypi.md', 'w+') as file:
31-
file.write(_content)
34+
return _content
35+
36+
37+
with open('README_pypi.md', 'w+') as file:
38+
file.write(get_embed_readme())

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22

33
from setuptools import setup
44

5-
setup()
5+
setup(include_package_data=True)

0 commit comments

Comments
 (0)