Skip to content

Commit e87dcee

Browse files
Merge pull request #119 from sepandhaghighi/dev
Version 1.2
2 parents 7d98b2a + 73b0a72 commit e87dcee

19 files changed

+314
-257
lines changed

.github/workflows/publish_conda.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: publish_conda
2+
3+
on:
4+
push:
5+
# Sequence of patterns matched against refs/tags
6+
tags:
7+
- '*' # Push events to matching v*, i.e. v1.0, v20.15.10
8+
9+
jobs:
10+
publish:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v1
14+
- name: publish-to-conda
15+
uses: sepandhaghighi/conda-package-publish-action@v1.2
16+
with:
17+
subDir: 'otherfile'
18+
AnacondaToken: ${{ secrets.ANACONDA_TOKEN }}
File renamed without changes.

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
strategy:
1313
matrix:
1414
os: [ubuntu-latest, windows-latest, macOS-latest]
15-
python-version: [3.5, 3.6, 3.7, 3.8, 3.9]
15+
python-version: [3.5, 3.6, 3.7, 3.8, 3.9, 3.10.0]
1616
steps:
1717
- uses: actions/checkout@v2
1818
- name: Set up Python ${{ matrix.python-version }}

AUTHORS.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# Core Developers #
22

33
----------
4-
- Sepand Haghighi - Sharif University Of Technology - ([@sepandhaghighi](http://github.com/sepandhaghighi)) ([sepand@pyrgg.ir](mailto:sepand@pyrgg.ir))
5-
- Sadra Sabouri - Sharif University Of Technology - ([@sadrasabouri](https://github.com/sadrasabouri)) ([sadra@pyrgg.ir](mailto:sadra@pyrgg.ir))
4+
- Sepand Haghighi - Sharif University of Technology - ([@sepandhaghighi](http://github.com/sepandhaghighi)) ([sepand@pyrgg.ir](mailto:sepand@pyrgg.ir))
5+
- Sadra Sabouri - Sharif University of Technology - ([@sadrasabouri](https://github.com/sadrasabouri)) ([sadra@pyrgg.ir](mailto:sadra@pyrgg.ir))
66

77
# Other Contributors #
88
----------

CHANGELOG.md

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,25 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
55
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
66

77
## [Unreleased]
8+
## [1.2] - 2022-09-07
9+
### Added
10+
- Anaconda workflow
11+
- Discord badge
12+
### Changed
13+
- Menu optimized
14+
- Docstrings modified
15+
- `branch_gen` function modified
16+
- `edge_gen` function modified
17+
- `precision` and `min_edge` parameters added to `branch_gen` function
18+
- `random_edge` parameter removed from `branch_gen` function
19+
- Test system modified
20+
- `AUTHORS.md` updated
21+
- License updated
22+
- `README.md` modified
23+
- `Python 3.10` added to `test.yml`
24+
### Removed
25+
- `sign_gen` function
26+
- `random_edge_limits` function
827
## [1.1] - 2021-06-09
928
### Added
1029
- `requirements-splitter.py`
@@ -128,7 +147,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
128147
- JSON format
129148
- README
130149

131-
[Unreleased]: https://github.com/sepandhaghighi/pyrgg/compare/v1.1...dev
150+
[Unreleased]: https://github.com/sepandhaghighi/pyrgg/compare/v1.2...dev
151+
[1.2]: https://github.com/sepandhaghighi/pyrgg/compare/v1.1...v1.2
132152
[1.1]: https://github.com/sepandhaghighi/pyrgg/compare/v1.0...v1.1
133153
[1.0]: https://github.com/sepandhaghighi/pyrgg/compare/v0.9...v1.0
134154
[0.9]: https://github.com/sepandhaghighi/pyrgg/compare/v0.8...v0.9

LICENSE

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ MIT License
22

33
Copyright (c) 2017 Sepand Haghighi
44

5+
Copyright (c) 2021 Sadra Sabouri
6+
57
Permission is hereby granted, free of charge, to any person obtaining a copy
68
of this software and associated documentation files (the "Software"), to deal
79
in the Software without restriction, including without limitation the rights

README.md

Lines changed: 24 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@
1313
<a href="https://codecov.io/gh/sepandhaghighi/pyrgg">
1414
<img src="https://codecov.io/gh/sepandhaghighi/pyrgg/branch/master/graph/badge.svg" alt="Codecov" /></a>
1515
<a href="https://www.python.org/"><img src="https://img.shields.io/badge/built%20with-Python3-green.svg" alt="built with Python3" /></a>
16-
16+
<a href="https://discord.gg/dfYAWVMaCW">
17+
<img src="https://img.shields.io/discord/1013411447130308669.svg" alt="Discord Channel">
18+
</a>
1719
</div>
1820

1921
----------
@@ -32,7 +34,7 @@
3234
* [References](https://github.com/sepandhaghighi/pyrgg#references)
3335
* [Citing](https://github.com/sepandhaghighi/pyrgg#citing)
3436
* [Authors](https://github.com/sepandhaghighi/pyrgg/blob/master/AUTHORS.md)
35-
* [License](https://github.com/sepandhaghighi/pyrgg#license)
37+
* [License](https://github.com/sepandhaghighi/pyrgg/blob/master/LICENSE)
3638
* [Show Your Support](https://github.com/sepandhaghighi/pyrgg#show-your-support)
3739
* [Changelog](https://github.com/sepandhaghighi/pyrgg/blob/master/CHANGELOG.md)
3840
* [Code of Conduct](https://github.com/sepandhaghighi/pyrgg/blob/master/.github/CODE_OF_CONDUCT.md)
@@ -49,7 +51,7 @@ Pyrgg target audiences are computer scientists who study graph algorithms and gr
4951
</tr>
5052
<tr>
5153
<td align="center">PyPI Counter</td>
52-
<td align="center"><a href="http://pepy.tech/count/pyrgg"><img src="http://pepy.tech/badge/pyrgg"></a></td>
54+
<td align="center"><a href="http://pepy.tech/project/pyrgg"><img src="http://pepy.tech/badge/pyrgg"></a></td>
5355
</tr>
5456
<tr>
5557
<td align="center">Github Stars</td>
@@ -86,23 +88,23 @@ Pyrgg target audiences are computer scientists who study graph algorithms and gr
8688
## Installation
8789

8890
### Source Code
89-
- Download [Version 1.1](https://github.com/sepandhaghighi/pyrgg/archive/v1.1.zip) or [Latest Source ](https://github.com/sepandhaghighi/pyrgg/archive/dev.zip)
91+
- Download [Version 1.2](https://github.com/sepandhaghighi/pyrgg/archive/v1.2.zip) or [Latest Source ](https://github.com/sepandhaghighi/pyrgg/archive/dev.zip)
9092
- `pip install -r requirements.txt` or `pip3 install -r requirements.txt` (Need root access)
9193
- `python3 setup.py install` or `python setup.py install` (Need root access)
9294

9395
### PyPI
9496

9597
- Check [Python Packaging User Guide](https://packaging.python.org/installing/)
96-
- `pip install pyrgg==1.1` or `pip3 install pyrgg==1.1` (Need root access)
98+
- `pip install pyrgg==1.2` or `pip3 install pyrgg==1.2` (Need root access)
9799

98100
### Conda
99101

100102
- Check [Conda Managing Package](https://conda.io)
101103
- `conda install -c sepandhaghighi pyrgg` (Need root access)
102104

103105
### Exe Version (Only Windows)
104-
- Download [Exe-Version 1.1](https://github.com/sepandhaghighi/pyrgg/releases/download/v1.1/PYRGG-1.1.exe)
105-
- Run `PYRGG-1.1.exe`
106+
- Download [Exe-Version 1.2](https://github.com/sepandhaghighi/pyrgg/releases/download/v1.2/PYRGG-1.2.exe)
107+
- Run `PYRGG-1.2.exe`
106108

107109
### System Requirements
108110
Pyrgg will likely run on a modern dual core PC. Typical configuration is:
@@ -124,9 +126,16 @@ Note that it may run on lower end equipment though good performance is not guara
124126

125127
## Issues & Bug Reports
126128

127-
Just fill an issue and describe it. I'll check it ASAP!
129+
Just fill an issue and describe it. We'll check it ASAP!
128130
or send an email to [info@pyrgg.ir](mailto:info@pyrgg.ir "info@pyrgg.ir").
129131

132+
You can also join our discord server
133+
134+
<a href="https://discord.gg/dfYAWVMaCW">
135+
<img src="https://img.shields.io/discord/1013411447130308669.svg?style=for-the-badge" alt="Discord Channel">
136+
</a>
137+
138+
130139
## TODO
131140
- [x] Formats
132141
- [x] DIMACS
@@ -537,11 +546,6 @@ If you use pyrgg in your research, please cite the [JOSS paper](http://joss.theo
537546
</table>
538547
539548
540-
## License
541-
542-
<a href="https://app.fossa.com/projects/git%2Bgithub.com%2Fsepandhaghighi%2Fpyrgg?ref=badge_large" alt="FOSSA Status"><img src="https://app.fossa.com/api/projects/git%2Bgithub.com%2Fsepandhaghighi%2Fpyrgg.svg?type=large"/></a>
543-
544-
545549
## References
546550
547551
@@ -597,5 +601,10 @@ bnb1zglwcf0ac3d0s2f6ck5kgwvcru4tlctt4p5qef
597601
<h4>Dash</h4>
598602
Xd3Yn2qZJ7VE8nbKw2fS98aLxR5M6WUU3s
599603
<h4>Stellar</h4>
600-
601-
GALPOLPISRHIYHLQER2TLJRGUSZH52RYDK6C3HIU4PSMNAV65Q36EGNL
604+
GALPOLPISRHIYHLQER2TLJRGUSZH52RYDK6C3HIU4PSMNAV65Q36EGNL
605+
<h4>Zilliqa</h4>
606+
zil1knmz8zj88cf0exr2ry7nav9elehxfcgqu3c5e5
607+
<h4>Coffeete</h4>
608+
<a href="http://www.coffeete.ir/opensource">
609+
<img src="http://www.coffeete.ir/images/buttons/lemonchiffon.png" style="width:260px;" />
610+
</a>

dev-requirements.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
art==5.2
2-
pyyaml==5.4.1
1+
art==5.7
2+
pyyaml==6.0
33
codecov>=2.0.15
44
scipy>=1.2.0
55
networkx>=2.1

otherfile/Version.rc

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
VSVersionInfo(
22
ffi=FixedFileInfo(
3-
filevers=(1, 1, 0, 0),
4-
prodvers=(1, 1, 0, 0),
3+
filevers=(1, 2, 0, 0),
4+
prodvers=(1, 2, 0, 0),
55
mask=0x3f,
66
flags=0x0,
77
OS=0x40004,
@@ -14,14 +14,14 @@ VSVersionInfo(
1414
[
1515
StringTable(
1616
u'040904B0',
17-
[StringStruct(u'CompanyName', u'Sepand Haghighi'),
17+
[StringStruct(u'CompanyName', u'PyRGG Development Team'),
1818
StringStruct(u'FileDescription', u'PYRGG.exe'),
19-
StringStruct(u'FileVersion', u'1.1.0.0'),
19+
StringStruct(u'FileVersion', u'1.2.0.0'),
2020
StringStruct(u'InternalName', u'PYRGG.exe'),
21-
StringStruct(u'LegalCopyright', u'Copyright (c) 2021 Sepand Haghighi'),
21+
StringStruct(u'LegalCopyright', u'Copyright (c) 2022 PyRGG Development Team'),
2222
StringStruct(u'OriginalFilename', u'PYRGG.exe'),
2323
StringStruct(u'ProductName', u'PYRGG'),
24-
StringStruct(u'ProductVersion', u'1, 1, 0, 0')])
24+
StringStruct(u'ProductVersion', u'1, 2, 0, 0')])
2525
]),
2626
VarFileInfo([VarStruct(u'Translation', [1033, 1200])])
2727
]

otherfile/meta.yaml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
{% set name = "pyrgg" %}
2+
{% set version = "1.2" %}
3+
4+
package:
5+
name: {{ name|lower }}
6+
version: {{ version }}
7+
source:
8+
git_url: https://github.com/sepandhaghighi/pyrgg
9+
git_rev: v{{ version }}
10+
build:
11+
noarch: python
12+
number: 0
13+
script: {{ PYTHON }} -m pip install . -vv
14+
requirements:
15+
host:
16+
- pip
17+
- setuptools
18+
- python >=3.5
19+
run:
20+
- art >=0.7
21+
- pyyaml >=3.12
22+
- python >=3.5
23+
about:
24+
home: https://github.com/sepandhaghighi/pyrgg
25+
license: MIT
26+
license_family: MIT
27+
summary: Python Random Graph Generator
28+
description: |
29+
Pyrgg is an easy-to-use synthetic random graph generator written in Python which supports various graph file formats including DIMACS .gr files. Pyrgg has the ability to generate graphs of different sizes and is designed to provide input files for broad range of graph-based research applications, including but not limited to testing, benchmarking and performance-analysis of graph processing frameworks. Pyrgg target audiences are computer scientists who study graph algorithms and graph processing frameworks.
30+
31+
Website: https://www.pyrgg.ir
32+
33+
Repo: https://github.com/sepandhaghighi/pyrgg
34+
extra:
35+
recipe-maintainers:
36+
- sepandhaghighi

otherfile/pyrgg_profile.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
# -*- coding: utf-8 -*-
22
"""Profile file."""
33
from pyrgg import *
4+
import pyrgg.params
5+
import random
46

5-
6-
dimacs_maker('profile', 1, 5000, 30000, 1, 60, 0, 1, 1, 1)
7+
pyrgg.params.PYRGG_TEST_MODE = True
8+
random.seed(400)
9+
dimacs_maker('profile', 1, 5000, 10000, 5, 600, 0, 1, 1, 1)

otherfile/version_check.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import sys
55
import codecs
66
Failed = 0
7-
VERSION = "1.1"
7+
VERSION = "1.2"
88

99
VERSION_1 = VERSION.split(".")[0]
1010
VERSION_2 = str(int(float(VERSION) * 10 - int(VERSION_1) * 10))
@@ -31,13 +31,19 @@
3131
"(u'FileVersion', u'{0}.{1}.{2}.{3}'),",
3232
"(u'ProductVersion', u'{0}, {1}, {2}, {3}')"]
3333
PARAMS_ITEMS = ['PYRGG_VERSION = "{0}"']
34+
META_ITEMS = ['% set version = "{0}" %']
35+
3436
FILES = {
3537
"setup.py": SETUP_ITEMS,
3638
"README.md": README_ITEMS,
3739
"CHANGELOG.md": CHANGELOG_ITEMS,
3840
os.path.join(
3941
"pyrgg",
40-
"params.py"): PARAMS_ITEMS}
42+
"params.py"): PARAMS_ITEMS,
43+
os.path.join(
44+
"otherfile",
45+
"meta.yaml"): META_ITEMS
46+
}
4147

4248
TEST_NUMBER = len(FILES.keys()) + 1
4349

0 commit comments

Comments
 (0)