Merge pull request #24662 from zombie110year/master
修改了 README 和 gen-license tool
This commit is contained in:
10
README.md
10
README.md
@@ -14,7 +14,7 @@ A "996" work schedule refers to an unofficial work schedule (9a.m. ~ 9p.m., 6 da
|
||||
|
||||
What can I do?
|
||||
---
|
||||
You can update this [blacklist](blacklist/blacklist.md) with evidence to help every worker.
|
||||
You can update this [blacklist](blacklist/blacklist.md) with evidence to help every worker.
|
||||
您可以更新这个[企业黑名单](blacklist/blacklist.md)(附带证据),来帮助每一位工作者。
|
||||
|
||||
Expand influence
|
||||
@@ -34,13 +34,13 @@ Community powers
|
||||
|
||||
Where are the issues?
|
||||
---
|
||||
Even if with the interaction limits on, the issue area was totally out of control.
|
||||
Even if with the interaction limits on, the issue area was totally out of control.
|
||||
So I **personally** decided to switch it off, not by GitHub or others.
|
||||
|
||||
License
|
||||
---
|
||||
[996ICU License](https://github.com/996icu/996.ICU/blob/master/LICENSE/)
|
||||
It's an idea of @xushunke: **Design A Software License Of Labor Protection -- 996ICU License**
|
||||
[996ICU License](https://github.com/996icu/996.ICU/blob/master/LICENSE/)
|
||||
It's an idea of @xushunke: **Design A Software License Of Labor Protection -- 996ICU License**
|
||||
It's source are from @Artoria2e5,
|
||||
See [#15642](https://github.com/996icu/996.ICU/pull/15642) for more details.
|
||||
See [#15642](https://github.com/996icu/996.ICU/pull/15642) for more details.
|
||||
This license should be used with other licenses as a practice of multi-licensing.
|
||||
|
@@ -1,27 +1,31 @@
|
||||
Copyright © 2019 <copyright holders>
|
||||
The 996ICU License (996ICU)
|
||||
|
||||
996ICU License is an extented license for { Other Licenses }.
|
||||
This license extended { Other Licenses }, and { Other Licenses } will be declared at the foot of this license.
|
||||
996ICU License is an extented license for {other}.
|
||||
This license extended {other}, and {other} will be declared at the foot of this license.
|
||||
|
||||
Individual who seeks authorization must fulfill the following obligations:
|
||||
Individual who seeks authorization must fulfill the following obligations:
|
||||
|
||||
1. Including this authorization file in any of its copies and important parts of the software.
|
||||
|
||||
Organization that seeks authorization must fulfill the following obligations:
|
||||
Organization that seeks authorization must fulfill the following obligations:
|
||||
|
||||
1. Including this authorization file in any of its copies and important parts of the software.
|
||||
2. Not forcing any employee or temporary worker to work in excess of the legal maximum working time in any form or by any means, including but not limited to: orders, threats, implications, etc.
|
||||
3. Not retaliating against any employee or temporary worker without participating in labor in excess of the legal maximum working time in any form or by any means, including but not limited to: mental assaults, personal injuries, illegal deductions of due remuneration, illegal dismissals, etc.
|
||||
4. Paying economic compensation at no lower than the standards stipulated by local laws and regulations, when organizing employees or temporary workers to work overtime.
|
||||
5. This organization is not in the blacklist* as stipulated in the agreement.
|
||||
5. This organization is not in the blacklist[^1] as stipulated in the agreement.
|
||||
|
||||
If the authorized individual or organization fails to fulfill any of the above obligations, the authorization will be withdrawn.
|
||||
|
||||
The undefined behavior of this license is handled by { Other Licenses }. The part of { Other Licenses } that conflicts with this agreement is handled in accordance with this agreement.
|
||||
The undefined behavior of this license is handled by {other}. The part of {other} that conflicts with this agreement is handled in accordance with this agreement.
|
||||
|
||||
https://github.com/996icu/996.ICU/pull/15642
|
||||
996 from https://feathub.com/LinXueyuanStdio/996.ICU
|
||||
|
||||
* Black Lists <...wait to be filled...>
|
||||
{ Other Licenses } <...wait to be filled...>
|
||||
* Discussion https://github.com/996icu/996.ICU/pull/15642
|
||||
* 996 from https://feathub.com/LinXueyuanStdio/996.ICU
|
||||
* [^1]: blacklist https://github.com/996icu/996.ICU/blob/master/blacklist/blacklist.md
|
||||
|
||||
{other}
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
{content}
|
||||
|
@@ -1,27 +1,33 @@
|
||||
Copyright © 2019 <copyright holders>
|
||||
The 996ICU License (996ICU)
|
||||
|
||||
996ICU License 是一个关于 {其他协议} 的扩展协议.
|
||||
此协议扩展了 {其他协议}, {其他协议} 将在本协议文本末尾声明.
|
||||
996ICU License 是一个关于 {other} 的扩展协议.
|
||||
此协议扩展了 {other}, {other} 将在本协议文本末尾声明.
|
||||
|
||||
要求得到授权的个人履行以下义务:
|
||||
|
||||
1. 将此授权文件包含在其任何副本以及软件的重要部分中.
|
||||
1. 将此授权文件包含在其任何副本以及软件的重要部分中.
|
||||
|
||||
要求得到授权的组织履行以下义务:
|
||||
|
||||
1. 将此授权文件包含在其任何副本以及软件的重要部分中.
|
||||
2. 不以任何形式或手段强迫其雇佣员工或临时劳动者进行超过当地法定最长劳动时间的劳动, 包括但不限于: 命令, 威胁, 暗示等.
|
||||
3. 不以任何形式或手段报复不参与超过法定最长劳动时间的劳动的雇佣员工或临时劳动者, 包括但不限于: 辱骂等精神攻击, 殴打等人身伤害以及非法扣除应得劳动报酬, 非法开除等.
|
||||
4. 组织其雇佣员工或临时劳动者进行超时劳动时,按不低于当地法规标准支付经济补偿.
|
||||
5. 此组织不在协议规定的黑名单*中.
|
||||
1. 将此授权文件包含在其任何副本以及软件的重要部分中.
|
||||
2. 不以任何形式或手段强迫其雇佣员工或临时劳动者进行超过当地法定最长劳动时间的劳动,
|
||||
包括但不限于: 命令, 威胁, 暗示等.
|
||||
3. 不以任何形式报复不参与超过法定最长劳动时间的劳动的雇佣员工或临时劳动者,
|
||||
包括但不限于: 辱骂等精神攻击, 殴打等人身伤害以及非法开除等.
|
||||
4. 组织其雇佣员工或临时劳动者进行超时劳动时,按不低于当地法规标准支付经济补偿.
|
||||
5. 此组织不在协议规定的黑名单中.
|
||||
|
||||
如果获得授权的个人或组织未能履行以上义务任意一条, 则授权将被收回.
|
||||
|
||||
此协议未定义的行为, 按 {其他协议} 协议处理. {其他协议} 与本协议冲突的部分, 按本协议处理.
|
||||
此协议未定义的行为, 按 {other} 协议处理.
|
||||
{other} 与本协议冲突的部分, 按本协议处理.
|
||||
|
||||
https://github.com/996icu/996.ICU/pull/15642
|
||||
996 from https://feathub.com/LinXueyuanStdio/996.ICU
|
||||
黑名单: https://github.com/996icu/996.ICU/blob/master/blacklist/blacklist.md
|
||||
|
||||
* 黑名单 <...wait to be filled...>
|
||||
{其他协议} <...wait to be filled...>
|
||||
{other}
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
{content}
|
||||
|
18
archived/licenses[WIP]/README.md
Normal file
18
archived/licenses[WIP]/README.md
Normal file
@@ -0,0 +1,18 @@
|
||||
# LICENSES[WIP]
|
||||
|
||||
## 协议文本
|
||||
|
||||
- [pull/15642 最初草案](LICENSE)
|
||||
- [基于 MIT 修改的 MIT-996ICU 协议](LICENSE-MIT-996)
|
||||
- [可扩展其他协议的 996ICU 协议模板](LICENSE.996icu.zh-hans)
|
||||
- [可扩展其他协议的 996ICU 协议模板的英文翻译版本](LICENSE.996icu.en-US)
|
||||
- [禁止加班的 Apache 协议](LICENSE_Apache_no_overtime)
|
||||
|
||||
## 其他信息
|
||||
|
||||
- [已使用 996ICU 协议的项目](projects_supporting_996_LICENSE.md)
|
||||
|
||||
## 工具
|
||||
|
||||
[这个工具](tools/gen-license/) 可以帮助你随时组合 996ICU 与其他协议.
|
||||
如果要更新此目录下的协议, 请将工具目录中的 [协议模板](tools/gen-license/genlicense/licenses/) 也同步修改.
|
@@ -25,5 +25,6 @@ Support [996.ICU Expanded LICENSE](https://github.com/996icu/996.ICU)
|
||||
gen-license --list
|
||||
|
||||
# Conmmon LICENSE with 996ICU
|
||||
gen-license mit --996icu # generate mit LICENSE with 996ICU
|
||||
gen-license mit --996icu # generate mit LICENSE with 996ICU zh-cn version
|
||||
gen-license mit --996icu en-us # generate mit LICENSE with 996ICU en-us version
|
||||
```
|
||||
|
@@ -1,4 +1,4 @@
|
||||
from argparse import ArgumentParser
|
||||
from argparse import ArgumentParser, _HelpAction
|
||||
from pkgutil import get_data
|
||||
from sys import exit
|
||||
|
||||
@@ -15,7 +15,8 @@ LICENSES = [
|
||||
"lgpl-3.0",
|
||||
"mit",
|
||||
"mpl-2.0",
|
||||
"unlicenses"
|
||||
"unlicenses",
|
||||
"996icu-0.1",
|
||||
]
|
||||
|
||||
|
||||
@@ -36,15 +37,38 @@ def getparser():
|
||||
)
|
||||
|
||||
parser.add_argument(
|
||||
"--996icu", dest="icu", help="Expand LICENSE with 996ICU LICENSE", required=False,
|
||||
action="store_true"
|
||||
"--996icu", dest="icu", help="Expand LICENSE with 996ICU LICENSE, Choose a language vesion or default zh-cn",
|
||||
required=False, nargs="?", const="zh-cn", default=None,
|
||||
choices=["en-us", "zh-cn"]
|
||||
)
|
||||
|
||||
return parser
|
||||
|
||||
|
||||
def select_template(language_code):
|
||||
"""choose a 996icu LICENSE template according to *language_code*
|
||||
"""
|
||||
map_ = {
|
||||
"zh": "zh-cn",
|
||||
"zh-cn": "zh-cn",
|
||||
"zh-hans": "zh-cn",
|
||||
"en": "en-us",
|
||||
"en-us": "en-us",
|
||||
}
|
||||
|
||||
template = get_data(
|
||||
__package__,
|
||||
"licenses/996.icu.template.{}.txt".format(
|
||||
map_.get(language_code, "zh-cn")
|
||||
)
|
||||
).decode("utf-8")
|
||||
|
||||
return template
|
||||
|
||||
|
||||
def main():
|
||||
args = getparser().parse_args()
|
||||
parser = getparser()
|
||||
args = parser.parse_args()
|
||||
|
||||
if args.list:
|
||||
for license in LICENSES:
|
||||
@@ -53,16 +77,18 @@ def main():
|
||||
exit(0)
|
||||
else: # main
|
||||
|
||||
# if no args input, show help and exit
|
||||
if args.code is None:
|
||||
parser.print_help()
|
||||
parser.exit()
|
||||
|
||||
resource = get_data(
|
||||
__package__,
|
||||
"licenses/{code}.txt".format(code=args.code)
|
||||
).decode("utf-8")
|
||||
|
||||
if args.icu: # --996icu option enabled
|
||||
template = get_data(
|
||||
__package__,
|
||||
"licenses/996.icu.template.zh-cn.txt"
|
||||
).decode("utf-8")
|
||||
if args.icu is not None: # --996icu option enabled
|
||||
template = select_template(args.icu)
|
||||
|
||||
output = template.format(
|
||||
other=args.code,
|
||||
@@ -70,7 +96,7 @@ def main():
|
||||
).encode("utf-8")
|
||||
|
||||
else: # common license
|
||||
output = resource
|
||||
output = resource.encode("utf-8")
|
||||
|
||||
with open("LICENSE", "wb") as file:
|
||||
file.write(output)
|
||||
|
@@ -0,0 +1,31 @@
|
||||
Copyright © 2019 <copyright holders>
|
||||
The 996ICU License (996ICU)
|
||||
|
||||
996ICU License is an extented license for {other}.
|
||||
This license extended {other}, and {other} will be declared at the foot of this license.
|
||||
|
||||
Individual who seeks authorization must fulfill the following obligations:
|
||||
|
||||
1. Including this authorization file in any of its copies and important parts of the software.
|
||||
|
||||
Organization that seeks authorization must fulfill the following obligations:
|
||||
|
||||
1. Including this authorization file in any of its copies and important parts of the software.
|
||||
2. Not forcing any employee or temporary worker to work in excess of the legal maximum working time in any form or by any means, including but not limited to: orders, threats, implications, etc.
|
||||
3. Not retaliating against any employee or temporary worker without participating in labor in excess of the legal maximum working time in any form or by any means, including but not limited to: mental assaults, personal injuries, illegal deductions of due remuneration, illegal dismissals, etc.
|
||||
4. Paying economic compensation at no lower than the standards stipulated by local laws and regulations, when organizing employees or temporary workers to work overtime.
|
||||
5. This organization is not in the blacklist[^1] as stipulated in the agreement.
|
||||
|
||||
If the authorized individual or organization fails to fulfill any of the above obligations, the authorization will be withdrawn.
|
||||
|
||||
The undefined behavior of this license is handled by {other}. The part of {other} that conflicts with this agreement is handled in accordance with this agreement.
|
||||
|
||||
|
||||
* Discussion https://github.com/996icu/996.ICU/pull/15642
|
||||
* 996 from https://feathub.com/LinXueyuanStdio/996.ICU
|
||||
* [^1]: blacklist https://github.com/996icu/996.ICU/blob/master/blacklist/blacklist.md
|
||||
|
||||
{other}
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
{content}
|
@@ -0,0 +1,13 @@
|
||||
The 996ICU License (996ICU)
|
||||
Version 0.1, March 2019
|
||||
|
||||
PACKAGE is distributed under LICENSE with the following restriction:
|
||||
|
||||
The above license is only granted to entities that act in concordance
|
||||
with local labor laws. In addition, the following requirements must be
|
||||
observed:
|
||||
|
||||
* The licencee must not, explicitly or implicitly, request or schedule
|
||||
their employees to work more than 45 hours in any single week.
|
||||
* The licencee must not, explicitly or implicitly, request or schedule
|
||||
their employees to be at work consecutively for 10 hours.
|
@@ -8,7 +8,7 @@ EMAIL = "zombie110year@outlook.com"
|
||||
URL = "https://github.com/zombie110year/gen-license"
|
||||
|
||||
# * 版本号
|
||||
VERSION = "0.0.0"
|
||||
VERSION = "0.0.2"
|
||||
|
||||
# * 短描述
|
||||
DESCRIPTION = "Generate LICENSE Files"
|
||||
|
Reference in New Issue
Block a user